UseMenuParameters

external interface UseMenuParameters(source)

Properties

Link copied to clipboard
abstract external var autoFocus: Boolean?

If true (Default) will focus the highligted item. If you set this prop to false the focus will not be moved inside the Menu component. This has severe accessibility implications and should only be considered if you manage focus otherwise.

Link copied to clipboard
abstract external var componentName: String?

The name of the component using useMenu. For debugging purposes.

Link copied to clipboard
abstract external var disabledItemsFocusable: Boolean?

If true, it will be possible to highlight disabled items.

Link copied to clipboard
abstract external var disableListWrap: Boolean?

If true, the highlight will not wrap around the list if arrow keys are used.

Link copied to clipboard
abstract external var id: ElementId?

The id of the menu. If not provided, it will be generated.

Link copied to clipboard
abstract external var listboxRef: Ref<Element>?

The ref to the menu's listbox node.

Link copied to clipboard
abstract external var onItemsChange: (ReadonlyArray<String>) -> Unit?

Callback fired when the menu items change.