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

Manali

Himachal Pradesh

3 hostels available

Goa

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

name
Type: string
Default:

Destination name displayed in bold

state
Type: string
Default:

State or region subtitle

hostelCount
Type: number
Default:

Number of hostels available at this destination

imageUrl
Type: string
Default:

Background image URL for the card

href
Type: string
Default:

Link URL when the card is clicked

className
Type: string
Default:

Additional CSS classes