Booking Summary
A structured card displaying booking details, line-item pricing with room cost and taxes, a total amount, and a confirm booking call-to-action.
Preview
Booking Summary
Zostel Manali
Check-in
Mar 15, 2026
Check-out
Mar 18, 2026
Guests
2
Room Type
Mixed Dorm
Mixed Dorm × 3 nights × 2 guests₹2994
Taxes & Fees₹359
Total₹3353
Usage
tsx
import { BookingSummary } from "zostel-ui";
<BookingSummary
property="Zostel Manali"
room="6-Bed Mixed Dorm"
checkIn="2026-02-15"
checkOut="2026-02-17"
lineItems={[
{ label: "Room (2 nights x \u20B9499)", amount: 998 },
{ label: "Taxes & Fees", amount: 90 },
]}
total={1088}
onConfirm={() => console.log("Confirmed")}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
property | string | — | Hostel property name |
room | string | — | Selected room type name |
checkIn | string | — | Check-in date |
checkOut | string | — | Check-out date |
lineItems | { label: string; amount: number }[] | — | Itemized cost breakdown |
total | number | — | Total booking amount |
currency | string | "INR" | Currency code for formatting |
onConfirm | () => void | — | Callback when Confirm Booking is clicked |
className | string | — | Additional CSS classes |
propertyType:
stringDefault: —
Hostel property name
roomType:
stringDefault: —
Selected room type name
checkInType:
stringDefault: —
Check-in date
checkOutType:
stringDefault: —
Check-out date
lineItemsType:
{ label: string; amount: number }[]Default: —
Itemized cost breakdown
totalType:
numberDefault: —
Total booking amount
currencyType:
stringDefault: "INR"
Currency code for formatting
onConfirmType:
() => voidDefault: —
Callback when Confirm Booking is clicked
classNameType:
stringDefault: —
Additional CSS classes