UseMenuParameters

external interface UseMenuParameters(source)

Properties

Link copied to clipboard
abstract 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 var componentName: String?

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

Link copied to clipboard

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

Link copied to clipboard
abstract var disableListWrap: Boolean?

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

Link copied to clipboard
abstract var id: String?

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

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

The ref to the menu's listbox node.

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

Callback fired when the menu items change.