Skip to content
Twentyfirst UIPro

Menu

Overlays · Menu

View as Markdown

Props

Menu

PropTypeNotes
items(MenuItem | "-")[]Required
label?stringAccessible name of the menu.
autoFocus?booleanFocus the first item on mount (menus opened from a button or the keyboard).
onClose?() => voidCalled after an item runs, and on Escape, so the owner can close the menu.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.