Menu
Overlays · Menu
Props
Menu
| Prop | Type | Notes |
|---|---|---|
items | (MenuItem | "-")[] | Required |
label? | string | Accessible name of the menu. |
autoFocus? | boolean | Focus the first item on mount (menus opened from a button or the keyboard). |
onClose? | () => void | Called after an item runs, and on Escape, so the owner can close the menu. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |