Glass menu
A frosted menu that floats above content.

When to use
- An overlay menu that should feel light over a busy background.
- Pairing with other frosted surfaces.
When not to use
- The menu sits on a flat page where frost adds nothing.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/glass-menu
Adds its 5 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
GlassMenu
5 props
PropTypeDefault
label *string—
sections *readonly GlassMenuSection[]—
onSelect *(item: GlassMenuItem) => void—
iconReactNode—
classNamestring—
Keyboard
- Enter or Space
- Opens the menu from its trigger and activates the focused item.
- ↓ or ↑
- Moves between items, wrapping at the ends; disabled items are skipped.
- → or ←
- Opens and closes a submenu.
- Escape
- Closes the menu and returns focus to the trigger.
- A–Z
- Moves to the next item that starts with that letter.
Accessibility
It is built on native elements and keeps aria-hidden 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/glass-menu.mdThe index of every part is at /llms.txt.