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.
A two-panel booking widget rendering an interactive monthly calendar on the left (with prev/next month navigation, today ring, past and unavailable dates struck through and disabled, and a selected-date fill) and a time-slot grid on the right split into morning/afternoon groups, above a sticky footer that summarizes the current date-plus-time pick and a confirm button that stays disabled until both are chosen.
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/booking1?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/booking1?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/booking1.tsx, plus the badge and button shadcn/ui primitives it uses for the eyebrow/duration badges and the confirm button.
The installed file exports booking1Demo alongside the block: the exact props behind the preview above. Spread it to get a working date-and-time picker in one line.
import { Booking1, booking1Demo } from "@/components/beste/block/booking1";
export default function BookingPage() {
return <Booking1 {...booking1Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Booking1 } from "@/components/beste/block/booking1";
export default function BookingPage() {
return (
<Booking1
badge={{ label: "Live availability", variant: "secondary" }}
heading="Book your <strong>next session</strong>"
description="Pick a date and time that works for you."
serviceName="Deep Tissue Massage"
duration="60 min"
unavailableDates={["2026-04-14", "2026-04-19"]}
timeSlots={["09:00", "09:30", "10:00", "13:00", "14:30", "16:00"]}
unavailableSlots={{ "2026-04-15": ["09:00", "13:00"] }}
labels={{
morning: "Morning",
afternoon: "Afternoon",
emptyHeading: "Select a date",
summaryEmpty: "No date & time selected",
summaryConnector: "at",
confirmButton: "Confirm Booking",
days: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
}}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string; variant?: "default" | "secondary" | "outline" } | – | Centered eyebrow badge above the heading |
heading | string | – | Section heading, supports inline <strong> |
description | string | – | Muted paragraph under the heading |
serviceName | string | – | Service name shown in the card header with a calendar icon |
duration | string | – | Duration text rendered as a secondary badge with a clock icon |
unavailableDates | string[] | [] | ISO date keys (YYYY-MM-DD) that render disabled and struck through |
timeSlots | string[] | [] | All HH:MM slots, auto-split into morning/afternoon at hour 12 |
unavailableSlots | Record<string, string[]> | {} | Map of date key to blocked HH:MM slots for that day |
labels | Booking1Labels | {} | All UI strings, day/month arrays, and legend text |
className | string | – | Extra classes for the outer <section> |
type Booking1Labels = {
morning?: string;
afternoon?: string;
emptyHeading?: string;
emptyDescription?: string;
summaryEmpty?: string;
summaryConnector?: string;
confirmButton?: string;
legendSelected?: string;
legendToday?: string;
legendUnavailable?: string;
days?: string[];
months?: string[];
};Calendar component: month/year, selected day, and selected time all live in internal useState seeded from new Date(), and none of them are ever lifted out or exposed via a callback, so the picked date and time are unreachable by the parent.Button is disabled until both a day and a time are selected, and it carries no onClick, so wiring the actual submit (reading the selection out of the component) is left to the integrator.toDateKey produces YYYY-MM-DD); a day cell is disabled when it is in the past (isPast) or listed in unavailableDates, and disabled cells render line-through and are unclickable.parseInt(time.split(":")[0]) "< 12" goes to the morning group, everything else to the afternoon group, so a malformed slot string falls back to hour 0 (morning).unavailableSlots is keyed by the same date-key format; only the entry for the currently selected day is consulted (via blockedSlots), and blocked slots render disabled and struck through within their group.selectedTime (and month changes also reset selectedDay) to null, clearing the right panel back to its empty state.heading supports inline <strong> markup rendered through dangerouslySetInnerHTML, with <strong> styled bold and in the primary color.serviceName/duration), badge/heading block, legend items, and each label are conditionally rendered, so any omitted string simply drops out; the right panel shows the emptyHeading/emptyDescription placeholder until a date is chosen.booking18
Interactive seat selection grid for cinemas, theaters, and events. Row/column layout with an aisle gap, tier-based pricing (standard/premium/VIP), occupied seats, a live selection summary, and a legend. Includes screen indicator at the top.
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.
booking5
Staff/provider selection cards with avatar, name, specialty, star rating, review count, availability badge, experience years, and selected state. Grid layout with "Any Provider" option.
booking4
Service selection grid with category filter tabs, service cards showing icon, name, description, duration, price, and selected state. Ideal for spa, salon, clinic, and fitness booking flows.
booking19
Stepper-based booking flow with numbered progress dots, animated progress bar, and four steps: service selection, schedule, contact details, and review. Back/Next navigation, per-step validation, and a live summary.
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.