Overlays
Menu
Presents compact actions, choices, and nested commands.
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Northstar launch
Product team · Project actions
Open on hover
Open using a pointer or the keyboard.
With checkbox
Controlled and uncontrolled selection with a disabled option.
With switch
Checkbox behavior with decorative switch indicators.
With radio group
Controlled selection of one project sort order.
With link
Router links preserve native menu navigation.
With group label
Separate related actions with labels and a divider.
Nested menu
Two submenu levels with centered and start alignment.
Close on click
Choose whether an action dismisses the menu.
Open a dialog
Transfer focus to a dialog and return to the menu trigger.
Disabled
An unavailable menu trigger.
Scrollable content
Bounded results with a long item label.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Group related actions and keep destructive commands distinct. Use checkbox or radio items for persistent choices. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use link items for navigation. Forms and longer editing tasks belong in Popover or Dialog. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Native root for controlled open state, callbacks, and detached trigger handles. |
| | — | Creates a handle for detached menu triggers. |
| | — | Native Base UI portal. |
| | — | Opens the menu; supports render, disabled, and openOnHover. |
| | — | Popup with render, anchor, and portalProps; align=center and sideOffset=4. |
| | — | Groups related menu items. |
| | — | Action row with inset, destructive variant, disabled, and closeOnClick. |
| | — | Native anchor or router render target; closeOnClick defaults to true. |
| | — | Native checkbox item; supports controlled state and switch variant. |
| | — | Native radio selection group with controlled or default values. |
| | — | Native radio option with a required value. |
| | — | Muted section label; supports inset alignment. |
| | — | Divider between groups. |
| | — | Native kbd element for shortcut text or Mizen keycaps. |
| | — | Native submenu root. |
| | — | Opens a submenu and remains highlighted while it is open. |
| | — | Submenu popup; align=start, sideOffset=0, and alignOffset=-5 unless centered. |
| | — | Base UI Menu namespace. |