Card
A versatile content container with header, body, and footer sections for grouping related information.
Preview
Zostel Jaipur
A heritage hostel in the Pink City
Mixed Dorm - 6 Bed₹499/night
Private Room₹1,299/night
Female Dorm - 4 Bed₹549/night
Last updated 2 hours ago
Usage
tsx
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "zostel-ui";
<Card>
<CardHeader>
<CardTitle>Zostel Jaipur</CardTitle>
<CardDescription>A heritage hostel in the Pink City</CardDescription>
</CardHeader>
<CardContent>
<p>Room details and pricing information.</p>
</CardContent>
<CardFooter>
<Button>Book Now</Button>
</CardFooter>
</Card>Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional CSS classes to apply to the card container |
children | ReactNode | — | Card content including CardHeader, CardContent, and CardFooter |
classNameType:
stringDefault: —
Additional CSS classes to apply to the card container
childrenType:
ReactNodeDefault: —
Card content including CardHeader, CardContent, and CardFooter