Seat picker
Choosing seats on a map: chosen seats spring into place, the total follows, arrow keys move like a grid, and a limit explains itself.
1 seat: 4C€18
When to use
- Flights, events, cinemas and venues.
- Desk and room booking.
When not to use
- Choosing a quantity only; use a number field.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/seat-picker
Adds its 4 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
SeatPicker
7 props
PropTypeDefaultDescription
map *SeatMap—
selected *readonly string[]—Seat ids like "12C".
onSelectedChange *(seats: string[]) => void—
maxnumber4
price *(seat: string, premium: boolean) => number—Price of one seat.
currencystring"EUR"
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes grid, row, gridcell and status semantics, with aria-label, aria-hidden, aria-pressed and aria-disabled 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/seat-picker.mdThe index of every part is at /llms.txt.