Hostel Card
A rich listing card for displaying hostel properties with image, name, location, rating, amenity tags, price, and a booking call-to-action.
Preview
Zostel Manali
4.5
Manali, Himachal Pradesh
WiFi
Cafe
Bonfire
₹499 /night
Usage
tsx
import { HostelCard } from "zostel-ui";
<HostelCard
name="Zostel Manali"
location="Manali, Himachal Pradesh"
rating={4.5}
tags={["WiFi", "Cafe"]}
price={499}
currency="INR"
imageUrl="/images/manali.jpg"
onBook={() => console.log("Booking...")}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | Hostel property name |
location | string | — | City and state of the hostel |
rating | number | — | Guest rating value (1-5) |
tags | string[] | — | Amenity or feature tags to display |
price | number | — | Starting price per night |
currency | string | "INR" | Currency code for price display |
imageUrl | string | — | URL of the hostel cover image |
onBook | () => void | — | Callback when Book Now is clicked |
className | string | — | Additional CSS classes |
nameType:
stringDefault: —
Hostel property name
locationType:
stringDefault: —
City and state of the hostel
ratingType:
numberDefault: —
Guest rating value (1-5)
tagsType:
string[]Default: —
Amenity or feature tags to display
priceType:
numberDefault: —
Starting price per night
currencyType:
stringDefault: "INR"
Currency code for price display
imageUrlType:
stringDefault: —
URL of the hostel cover image
onBookType:
() => voidDefault: —
Callback when Book Now is clicked
classNameType:
stringDefault: —
Additional CSS classes