Staaarter

Reservation Summary

A reservation confirmation summary card: a service name with an icon, date and time, provider info shown with an avatar and initials fallback, a static price breakdown (subtotal, tax, promo discount, total), a decorative promo code field with an Apply button, cancellation policy copy, and a Confirm booking button.

By Staaarter Team
Booking
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials, button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/reservation-summary.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/booking/booking2.tsx instead.

Usage

The file also exports booking2Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Booking2, booking2Demo } from "@/components/blocks/booking/booking2";

export default function Page() {
  return <Booking2 {...booking2Demo} />;
}

Props

PropTypeDefaultDescription
serviceNamestring"Chef's Tasting Menu, Table for 4"Name of the reserved service.
datestring"Sat, Aug 15"Reservation date as a plain string.
timestring"7:30 PM"Reservation time as a plain string.
providerNamestring"Elena Marchetti"Name of the host/provider.
providerRolestring"Host, Lumen Kitchen"Role or business line shown under the provider name.
providerAvatarUrlstringnoneAvatar image URL for the provider; falls back to initials if it fails to load.
priceLinesBooking2PriceLine[]noneOrdered list of price breakdown line items shown above the total.
totalstring"$224.80"Final total amount, shown as its own bold line.
cancellationPolicystringnoneCancellation policy paragraph shown near the bottom of the card.
classNamestringnoneExtra classes for the outer section element.

Types

interface Booking2PriceLine {
  label: string;
  amount: string;
}

Behavior notes

  • This is a plain Server Component: every value shown (price breakdown, date/time, provider info) is static data passed in as props, nothing is computed client-side.
  • The promo code input and its Apply button, and the Confirm booking button, are plain elements with no event handlers wired, since a Server Component can never carry a client event handler and none of these actions have a real backend to call.