Booking Summary
Before you pay: the stay, the dates, who’s coming, each line and the total.
Preview
Zostel Manali
- Check-in
- Fri, 16 Oct
- Check-out
- Mon, 19 Oct
- Guests
- 2
- Room
- Mixed dorm
Dates and amounts are samples, not prices.
Usage
import { BookingSummary } from "zostel-ui";
<BookingSummary
hostelName="Zostel Manali"
checkIn="Fri, 16 Oct"
checkOut="Mon, 19 Oct"
guests={2}
roomType="Mixed dorm"
lineItems={[
{ label: "Mixed dorm · 3 nights · 2 beds", amount: 1234 },
{ label: "Taxes", amount: 123 },
]}
onConfirm={pay}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
hostelName | string | — | The stay. |
checkIn / checkOut | string | — | Dates, as you want them printed. |
guests | number | — | How many. |
roomType | string | — | Dorm or room. |
lineItems | { label: string; amount: number }[] | — | Each line; the total is their sum. |
currency | string | "INR" | ISO 4217 code: INR (₹1,23,456), NPR, THB (฿12,345)… Printed with formatPrice. |
onConfirm | () => void | — | Shows the confirm button. |
confirmLabel | string | "Confirm" | Its words. |
className | string | — | More classes, merged with the component’s own (tailwind-merge). |
hostelNamestringThe stay.
checkIn / checkOutstringDates, as you want them printed.
guestsnumberHow many.
roomTypestringDorm or room.
lineItems{ label: string; amount: number }[]Each line; the total is their sum.
currencystring"INR"ISO 4217 code: INR (₹1,23,456), NPR, THB (฿12,345)… Printed with formatPrice.
onConfirm() => voidShows the confirm button.
confirmLabelstring"Confirm"Its words.
classNamestringMore classes, merged with the component’s own (tailwind-merge).
Samples
The amounts, ratings and reviews in these demos are samples, not offers — the places are real (every Zostel place, from /brand/places/index.json).