Menu
moleculesDropdown menu on the native popover: arrow-key navigation, icons, tags, checkable rows, danger items and hosted control rows.
Row actions
items with icon, tag/tagTone and danger; the trigger snippet is a kebab icon on the default ghost box.
- 🦉 Amara Okafor Platform lead
- 🐙 Jun Tanaka SRE
- 🦊 Lena Fischer Designer
- M Mateo Ruiz Backend
Trigger chrome and placements
variant/size/box/pill/tone pass to the trigger; placement picks the corner; count marks active filters.
Checkable, disabled, long and scrolling
pressed renders menuitemcheckbox, keepOpen leaves the menu open, disabled rows skip focus, panelStyle caps and scrolls the panel.
Control rows and nested popover
control snippet rows host a native select or a nested Popover; their first focusable joins ↑/↓ navigation.
grouped by repo · labels: urgent
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label required | string | — | |
items required | MenuItem[] | — | |
trigger required | Snippet | — | |
tag | Snippet<[MenuItem]> | — | Custom trailing content for items that carry a `tag`. |
placement | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'bottom-start' | |
variant | TriggerVariant | — | Button-compatible trigger chrome. Omitting every chrome prop preserves the original ghost icon-button trigger. `toggle` renders the trigger as the `Toggle` chip itself, so a trigger and a Toggle side by side share one box — `size`, `pill` and `pressed` behave as they do on `Toggle`. |
tone | TriggerTone | — | |
size | TriggerSize | — | |
box | 'xs' | 'sm' | 'md' | 'lg' | — | Shared square box scale (`--box-xs/sm/md/lg`) for an icon-only trigger, pinning the square exactly. The default trigger floors at the `sm` box and grows with its content; override that floor with `style="min-width: …; min-height: …"` for any other square. |
pill | boolean | — | Fully rounded trigger (`--r-pill`), as on `Button`. |
control | boolean | — | Uniform toolbar/composer control height; follows a sized `Cluster`. |
block | boolean | — | |
triggerClass | string | — | Extra class on the trigger button, for a stylesheet you already load globally. Your *scoped* CSS cannot reach it: the element is rendered by `Popover`, so it carries `Popover`'s scope hash, not yours, and a selector like `.toolbar .my-trigger` matches nothing. Use `style`, or a `:global(.pop-trigger)` descendant selector from your own root. |
bare | boolean | — | Drop the default ghost-icon chrome so the trigger is an unstyled button you fully own (pair with `triggerClass`). |
hitArea | 'auto' | 'compact' | — | Icon-only triggers grow a touch hit slab on coarse pointers; `compact` opts out. |
disabled | boolean | — | |
gap | number | — | |
count | number | — | Corner count indicator on the trigger, as on `Button`: hidden at 0/undefined, capped at `countMax+`, the exact number joins `label`. |
countMax | number | — | |
pressed | boolean | — | `variant="toggle"` only: paint the chip in its "on" tint. |
onopen | () => void | — | |
onclose | () => void | — | |
open bindable | boolean | false | Bindable open state; set it to open/close programmatically. |
closeOnSelect | boolean | true | Close the menu after an item is selected; a per-item `keepOpen` wins over it. |
class | string | '' | |
style | string | '' | |
panelClass | string | '' | Class / inline style on the floating panel; `panelStyle` is how you size or cap it (`min-width`, `max-height`, `padding`). |
panelStyle | string | '' | |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |