Dock
A floating dock of icon destinations with a gliding active pill.
When to use
- A small set of primary destinations in a showcase or mobile shell.
- Icon-only navigation with tooltips.
When not to use
- More than seven destinations; use a sidebar.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/dock
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
Dock
5 props
PropTypeDefault
items *readonly DockItem[]—
label *string—
valuestring—
onValueChange *(id: string) => void—
classNamestring—
Keyboard
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
Accessibility
It exposes toolbar and separator semantics, with aria-pressed and aria-label 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/dock.mdThe index of every part is at /llms.txt.