Component packs › Almanac › Booking Slots

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.

Booking Slots props

PropTypeDefaultDescription
titlestring
lengthnumber30Minutes per slot. Default 30.
opennumber9:00–17:00Opening time and closing time in minutes. Default 9:00–17:00.
closenumber
isFree(day: Date, minutes: number) => booleana believable demo patternIs this slot free? Default: a believable demo pattern.
onBook(start: Date, minutes: number) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: picks days and times until touched.

Methods on the ref

Use it in React

import BookingSlots from './BookingSlots';

<BookingSlots />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Almanac

Good for: Calendar and scheduling.