Skip to content
caliper ui pro docs

Floor planner

Desk booking across floors. The floors really are stacked: choose one and the floors above it lift away, so its plan is unobstructed, then book a desk from the plan. Every desk has a name and a state, and the side card says each choice in words.

Pro

Choose a free desk to book it.

12 of 18 desks free on Floor 2. Arrow keys move between desks.

State

When to use

  • Hot-desking, room and seat booking where people think in floors of a building.
  • Showing which part of a building a booking sits in, with the plan as the way to choose.

When not to use

  • A single flat room; use the seat picker.
  • Time slots within a day; use the availability scheduler.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/floor-planner

Adds its 6 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

FloorPlanner

18 props
PropTypeDefaultDescription
labelstring"Floor plan"Names the plan for screen readers.
floors *readonly FloorPlannerFloor[]—The floors, lowest first.
desks *readonly FloorPlannerDesk[]—
days *readonly FloorPlannerDay[]—
bookings *readonly FloorPlannerBooking[]—
floorstring—The chosen floor id. Controlled when set.
defaultFloorstring—
onFloorChange((floorId: string) => void)—
daystring—The chosen day id. Controlled when set.
defaultDaystring—
onDayChange((dayId: string) => void)—
onBook((deskId: string, dayId: string) => void)—Called with the desk and day when the Book button is pressed. If you already hold a desk that day, the button says "instead".
onCancel((deskId: string, dayId: string) => void)—
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

Keyboard

→
Moves to the next item or value.
←
Moves to the previous item or value.
↓
Moves to the next item or value.
↑
Moves to the previous item or value.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

Accessibility

It is built on native elements and keeps aria-hidden, aria-label, aria-disabled, aria-pressed and aria-live 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/floor-planner.md

The index of every part is at /llms.txt.

More in Work tracking