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.
- Design retainer, October
- €8,400.00
- Usability study, 6 sessions
- €2,880.00
- Travel
- €1,200.00
- Total
- €12,480.00
- 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
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
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.mdThe index of every part is at /llms.txt.