Motionshelf
← All components

Scheduling

Slot Booking

A time slot fills with color and the booking is confirmed.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/slot-booking.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
daystring"Saturday"Day heading.
slotsstring[]ten example timesTime slots, in order.
busynumber[][0, 2, 3, 6, 8, 9]Indexes of the slots that are already taken.
pickednumber4Index of the slot the pointer picks.
toaststring"Booked"Label shown in the confirmation bar.
accentstring"#1f5bff"Color of the picked slot and the confirmation label.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react