Skip to Content

Menu

A menu displays a list of actions or options that a user can choose.

Separators

Sections

Single select

Multiple select

Preselected

Component props

NameTypeDescription
selectionModeSelectionMode"none" | "single" | "multiple"
selectedKeysstring[]Controlled selected keys
defaultSelectedKeysstring[]Default selected keys
onSelectionChange(keys: Selection) => voidCalled when selection changes
NameTypeDescription
idstringUnique item identifier
iconReactNodeIcon displayed before label
labelstringItem label text
isDisabledbooleanDisables the item
showCheckedbooleanShows check mark when selected (default: true)
showSubMenuIconbooleanShows submenu arrow icon