Skip to content
caliper ui pro docs

Floating panel

A small window that floats over the page and stays out of the way: notes beside a record, an assistant beside a form. Drag it, resize it, shrink it to its title bar or let it fill the space.

Pro
INV-2041 · FormaDue 14 Nov
Design retainer, October
€8,400.00
Usability study, 6 sessions
€2,880.00
Travel
€1,200.00
Total
€12,480.00
Notes · INV-2041
Arrow keys move the panelArrow keys resize the panel
  • Travel billed at cost, receipts attached.
  • Ask Elias about the 30-day terms.

When to use

  • Side work that should stay open while people use the page behind.
  • Tools people place themselves: notes, a calculator, a preview.

When not to use

  • Anything that needs an answer before going on; use a dialog.
  • Content that belongs in the layout; use a sheet or resizable panels.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/floating-panel

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

FloatingPanel

7 props
PropTypeDefaultDescription
title *string—
children *ReactNode—
openbooleantrue
onOpenChange((open: boolean) => void)—
defaultBoxBox{ x: 24, y: 24, w: 320, h: 260 }Where it starts, in pixels inside its parent.
minSize{ w: number; h: number; }{ w: 220, h: 140 }
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes dialog and button semantics, with aria-modal, aria-labelledby, aria-roledescription, aria-describedby, aria-label and aria-expanded kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/floating-panel.md

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

More in Panels