Availability scheduler
Pick a day and a time slot from a host's availability.
When to use
- Booking a meeting or demo.
When not to use
- Time zones are not handled.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/availability-scheduler
Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
AvailabilityScheduler
8 props
PropTypeDefaultDescription
availability *Readonly<Record<string, readonly string[]>>—Open start times ("09:30") by ISO date. Days not listed are unavailable.
timeZone *string—A readable zone name, such as "Europe/London".
durationnumber30Minutes.
titlestring"Book a time"
descriptionstring—
defaultDatestring—An ISO date to open on, already chosen, so its times show at once.
onConfirm *(booking: { date: string; time: string; }) => SchedulerResult | Promise<SchedulerResult>—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status and group semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/availability-scheduler.mdThe index of every part is at /llms.txt.