The CSS className for the element. A function may be provided to compute the class based on component state.
OptionaldefaultSelectedKeys
defaultSelectedKeys?:"all"|Iterable<Key,any,any>
The initial selected keys in the collection (uncontrolled).
Optionaldependencies
dependencies?:readonlyany[]
Values that should invalidate the item cache when using dynamic collections.
Optionaldir
dir?:string
OptionaldisabledKeys
disabledKeys?:Iterable<Key,any,any>
The item keys that are disabled. These items cannot be selected, focused, or otherwise interacted with.
OptionaldisallowEmptySelection
disallowEmptySelection?:boolean
Whether the collection allows empty selection.
OptionalescapeKeyBehavior
escapeKeyBehavior?:"none"|"clearSelection"
Whether pressing the escape key should clear selection in the menu or not.
Most experiences should not modify this option as it eliminates a keyboard user's ability to
easily clear selection. Only use if the escape key is being handled externally or should not
trigger selection clearing contextually.
Provides content to display when there are no items in the list.
OptionalselectedKeys
selectedKeys?:"all"|Iterable<Key,any,any>
The currently selected keys in the collection (controlled).
OptionalselectionMode
selectionMode?:SelectionMode
The type of selection that is allowed in the collection.
OptionalshouldFocusWrap
shouldFocusWrap?:boolean
Whether keyboard navigation is circular.
Optionalslot
slot?:string|null
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
Optionalstyle
style?:StyleOrFunction<MenuRenderProps>
The inline style for the element. A function may be provided to compute the style based on component state.
Identifies the element (or elements) that describes the object.