Orbit menu
A round menu whose items fan out around a button.
When to use
- A floating action with a few related choices.
- Playful, touch-first interfaces.
When not to use
- There are many items or long labels.
- Keyboard efficiency is the priority.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/orbit-menu
Adds its 2 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
OrbitMenu
8 props
PropTypeDefaultDescription
labelstring"Quick actions"
items *readonly OrbitItem[]—
onSelect *(item: OrbitItem) => void—
radiusnumber88Distance from the center to each action, in pixels.
startAnglenumber-90Where the first action sits: -90 is straight up.
sweepnumber360How much of the circle is used. Less than 360 leaves a gap.
sizenumber52
classNamestring—
Keyboard
- Escape
- Closes or cancels, then returns focus to where it came from.
- →
- Moves to the next item or value.
- ↓
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- ↑
- Moves to the previous item or value.
Accessibility
It exposes menu, none and menuitem semantics, with aria-label, aria-haspopup, aria-expanded, aria-controls and aria-hidden 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/orbit-menu.mdThe index of every part is at /llms.txt.