A dropdown menu that floats above the page as a lighter surface with a top-lit hairline border. It has icons, shortcuts, group labels, separators, checkable items and cascading submenus, opens with a scale and fade from its trigger, and supports arrow keys, typeahead, Escape and click-outside. A short demonstration opens the menu and its submenu on load.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { ElevationDropdown } from "@/components/hyperblur-pro/elevation-dropdown"
<ElevationDropdown />| Prop | Type | Default | Description |
|---|---|---|---|
| triggerLabel | string | "Acme Studio" | Text of the menu button. |
| items | ElevationMenuEntry[] | Workspace menu with 3 submenus | Items, separators and labels. An item may have children for a cascading submenu or a boolean checked for a toggle. |
| onAction | (id: string) => void | undefined | Called when an item is chosen. |
| accent | string | "#6366f1" | The single accent color used for focus rings and active states. |
| autoplay | boolean | true | Plays a short demonstration until the visitor interacts. |
Source code is included in Pro and above