Destination Card
An image-overlay card for browsing travel destinations, featuring the destination name over a dark gradient with subtitle and hostel count.
Preview
Manali
Himachal Pradesh
3 hostels available
Goa
South Goa
2 hostels available
Usage
tsx
import { DestinationCard } from "zostel-ui";
<DestinationCard
name="Manali"
state="Himachal Pradesh"
hostelCount={3}
imageUrl="/images/manali-dest.jpg"
href="/destinations/manali"
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | Destination name displayed in bold |
state | string | — | State or region subtitle |
hostelCount | number | — | Number of hostels available at this destination |
imageUrl | string | — | Background image URL for the card |
href | string | — | Link URL when the card is clicked |
className | string | — | Additional CSS classes |
nameType:
stringDefault: —
Destination name displayed in bold
stateType:
stringDefault: —
State or region subtitle
hostelCountType:
numberDefault: —
Number of hostels available at this destination
imageUrlType:
stringDefault: —
Background image URL for the card
hrefType:
stringDefault: —
Link URL when the card is clicked
classNameType:
stringDefault: —
Additional CSS classes