Component packs › Almanac › Booking Slots
Pick a day and its slots cascade in, taken ones stepping back; pick a time and it stretches into the confirm button with the whole booking.
Booking Slots is a booking from Almanac, a component pack with 8 components: Calendar and scheduling components with a feel for time. Price: $2 for the whole pack.
Built with: cascade, isFree(), radio groups.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | ||
length | number | 30 | Minutes per slot. Default 30. |
open | number | 9:00–17:00 | Opening time and closing time in minutes. Default 9:00–17:00. |
close | number | ||
isFree | (day: Date, minutes: number) => boolean | a believable demo pattern | Is this slot free? Default: a believable demo pattern. |
onBook | (start: Date, minutes: number) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: picks days and times until touched. |
destroy(): voidimport BookingSlots from './BookingSlots';
<BookingSlots />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Calendar and scheduling.