Hotel room selection with room type cards showing images, amenity icons, guest capacity, price per night, check-in/check-out date picker, guest counter, and total price summary.
A hotel room reservation card: a header shows the property name, star rating, night count, check-in/check-out dates, and a plus/minus guest counter, above a divided list of room-type rows each rendering a cover image, bed type, size, capacity, amenity chips, and per-night price, with a sticky footer that summarizes the selected room's total price and a "Reserve Room" button.
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/booking7?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/booking7?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/booking7.tsx, plus the badge and button shadcn/ui primitives it uses for the eyebrow, night/popular badges, and the reserve button.
The installed file exports booking7Demo alongside the block: the exact props behind the preview above. Spread it to get a working room booking card in one line.
import { Booking7, booking7Demo } from "@/components/beste/block/booking7";
export default function Page() {
return <Booking7 {...booking7Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Bath, Wifi } from "lucide-react";
import { Booking7 } from "@/components/beste/block/booking7";
export default function Page() {
return (
<Booking7
badge={{ label: "Find a room", variant: "secondary" }}
heading="Reserve your <strong>stay</strong>"
hotelName="The Grand Azure Resort"
rating={4.9}
checkIn="April 18, 2026"
checkOut="April 21, 2026"
nights={3}
currency="$"
rooms={[
{
name: "Deluxe Suite",
image: "/rooms/deluxe.jpg",
price: 249,
capacity: 3,
bedType: "King Bed",
size: "45 m²",
amenities: [
{ icon: Wifi, label: "Free WiFi" },
{ icon: Bath, label: "Jacuzzi" },
],
popular: true,
},
]}
labels={{ perNightLabel: "/ night", reserveButton: "Reserve Room" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string; variant?: "default" | "secondary" | "outline" } | – | Section eyebrow badge above the heading |
heading | string | – | Section heading, supports inline <strong> |
description | string | – | Muted paragraph under the heading |
hotelName | string | – | Property name in the card header |
rating | number | – | Star rating shown next to the hotel name |
checkIn | string | – | Check-in date, displayed as-is |
checkOut | string | – | Check-out date, displayed as-is |
nights | number | 1 | Night count; multiplies room price for the total |
currency | string | "$" | Currency symbol prefixed to every price |
rooms | RoomType[] | [] | Selectable room rows |
labels | Booking7Labels | {} | All display strings for the header, rows, and footer |
className | string | – | Extra classes for the outer <section> |
type RoomAmenity = {
icon: LucideIcon;
label: string;
};
type RoomType = {
name: string;
image: string;
price: number;
capacity: number;
bedType: string;
size: string;
amenities: RoomAmenity[];
popular?: boolean;
};
type Booking7Labels = {
checkInLabel?: string;
checkOutLabel?: string;
guestsLabel?: string;
nightSingular?: string;
nightPlural?: string;
popularBadge?: string;
capacityPrefix?: string;
capacitySuffix?: string;
tooSmallLabel?: string;
perNightLabel?: string;
noSelection?: string;
reserveButton?: string;
};room.name as a string key in internal useState, so two rooms sharing a name would both register as selected, and the selection is never lifted out or exposed via a callback.useState seeded at 2 and clamped to the range 1 to 6; it is purely internal, has no onChange, and the guestsLabel value never scales the price.room.capacity < guests, which dims it to opacity-50, sets cursor-not-allowed, hides its selection radio, and appends the tooSmallLabel in rose text next to the capacity line.heading renders through dangerouslySetInnerHTML, and only inline <strong> is styled (bold, primary color) by the heading's descendant selectors.selected.price * nights; with no selection it shows the noSelection message and the "Reserve Room" button stays disabled.console.log("Reservation:", ...) with the hotel, room, dates, nights, guests, total, and currency, so wiring an actual checkout is left to the integrator.max-w-lg column and the room list itself has no scroll cap, so it grows with the number of rooms.<img> elements with object-cover, and the nightSingular vs nightPlural label is chosen by nights === 1 for the header badge (the footer summary always uses nightPlural).booking10
Coworking meeting room reservation with room cards showing capacity, equipment icons, hourly pricing, time range selector, attendee count, and total cost. Office and coworking space booking flow.
booking9
Event ticket selection with event banner, date/venue info, ticket tier cards (General/VIP/Backstage) with perks list, quantity selector, and order total. Concert and conference ticket flow.
booking2
Booking confirmation card with service details, date/time, provider info with avatar, price breakdown with subtotal/tax/discount/total, promo code input, cancellation policy, and confirm CTA.
booking6
Restaurant table reservation with guest count selector, date/time picker, seating preference (indoor/outdoor/bar), special requests textarea, and booking summary. Fine dining reservation flow.
booking8
Flight search results with airline logos, departure/arrival times, duration, stops, class selector (economy/business/first), baggage info, and price comparison. Airline ticket booking flow.
booking11
Google Flights-style price calendar with per-day pricing, cheapest day highlights, expensive day indicators, date range selection, and best deal summary banner. Universal for hotels, flights, car rentals, and vacation bookings.