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.
A single-month price calendar where each day cell shows its nightly rate, color-coded against the month's cheapest and most-expensive 25% thresholds, with click-to-pick start and end dates, a live hover range preview, a "best deal" banner suggesting the cheapest contiguous 3-night window, a running selection summary, and a footer book button whose label interpolates the chosen nights and total.
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/booking11?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/booking11?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/booking11.tsx, plus the badge and button shadcn/ui primitives it uses for the section eyebrow and the "best deal" select / footer book actions.
The installed file exports booking11Demo alongside the block: the exact props behind the preview above. Spread it to get a working price calendar in one line.
import { Booking11, booking11Demo } from "@/components/beste/block/booking11";
export default function Page() {
return <Booking11 {...booking11Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Booking11 } from "@/components/beste/block/booking11";
export default function Page() {
return (
<Booking11
badge={{ label: "Flexible dates", variant: "secondary" }}
heading="Find the <strong>best price</strong>"
description="Prices are per night. Tap a start and end date to see your total."
currency="$"
pricesByDate={{
"2026-04-14": 89,
"2026-04-15": 92,
"2026-04-17": 145,
}}
labels={{
days: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
legendCheapest: "Cheapest",
legendSelected: "Selected",
legendExpensive: "Expensive",
bestDealPrefix: "Best deal:",
bestDealConnector: "avg",
bestDealPerNight: "/night",
selectButton: "Select",
summaryConnector: "nights · avg",
noSelection: "Select dates to continue",
bookTemplate: "Book {nights} nights · {price}",
}}
/>
);
}| 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 | – | Supporting paragraph below the heading |
currency | string | "$" | Symbol prefixed to every price |
pricesByDate | Record<string, number> | {} | ISO YYYY-MM-DD date keys to nightly rates; missing days render unavailable |
labels | Booking11Labels | {} | All display strings, weekday/month names, and the book-button template |
className | string | – | Extra classes for the outer <section> |
type Booking11Labels = {
days?: string[];
months?: string[];
legendCheapest?: string;
legendSelected?: string;
legendExpensive?: string;
bestDealPrefix?: string;
bestDealConnector?: string;
bestDealPerNight?: string;
selectButton?: string;
summaryConnector?: string;
noSelection?: string;
bookTemplate?: string;
};startDay, endDay, hoveredDay) lives in internal useState seeded from new Date() and is never lifted out; there are no onChange or onSelect callbacks, so the current selection is not exposed to the parent.startDay/endDay/hoveredDay are day numbers within the visible month, and every navigation via the header chevrons clears the current range. A stay that spans a month boundary cannot be selected.cursor-not-allowed opacity-30) when the date is in the past or has no pricesByDate entry, the latter shown as an em-dash placeholder.bookTemplate with {nights} and {price} interpolated, and clicking it only calls console.log("Stay booking:", ...), so wiring a real booking step is left to the integrator.<strong> markup rendered via dangerouslySetInnerHTML, with <strong> styled bold in the primary color.startDay up to but not including endDay, so checkout day is excluded from the per-night math while total sums those same nights.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.
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.
booking7
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.
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.
booking1
Split-panel booking interface with interactive monthly calendar on the left and time slot grid on the right. Features today highlight, disabled dates, selected state, morning/afternoon grouping, and booking summary footer.
booking20
Vehicle rental flow with pickup and return location fields, date range picker, car class grid (compact/suv/luxury) with image and specs, insurance tier selector, optional add-ons, and live price breakdown.