Skip to content
caliper ui pro docs

Grow menu

A button that grows into a menu in place.

Pro
Q4 roadmap.pdfMaya Chen · 20 Oct

When to use

  • A compact control with a few choices.

When not to use

  • The menu has many items.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/grow-menu

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

GrowMenu

5 props
PropTypeDefault
label *string—
items *readonly GrowMenuItem[]—
onSelect *(item: GrowMenuItem) => void—
iconReactNode—
classNamestring—

Keyboard

↓
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.
Escape
Closes or cancels, then returns focus to where it came from.
Tab
Moves focus through the part's focusable elements.

Accessibility

It exposes menu and menuitem semantics, with aria-haspopup, aria-expanded, aria-controls, aria-hidden 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/grow-menu.md

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

More in Morphing controls