Slot Picker

Time slot grid for slot-inventory products (activities, tours, classes, transfers). Slots are grouped into Morning / Afternoon / Evening. Handles available, limited (spots-left badge), sold-out, and closed states. Loading skeleton and empty state included.

core/slot-picker

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Available, limited, and sold-out slots with loading and empty states.

API Reference

PropTypeDescription
slotsreq
TimeSlot[]Available time slots to render.
valuereq
string | undefinedCurrently selected slot ID.
onChangereq
(slotId: string) => voidCalled when the user selects a slot.
loading
booleanShows a loading skeleton.
dateLabel
stringDate label shown in the header (e.g. Mon 14 Apr).
emptyMessage
stringMessage shown when slots is empty.