UseMenuItemReturnValue

external interface UseMenuItemReturnValue(source)

Properties

Link copied to clipboard
abstract var disabled: Boolean

If true, the component is disabled.

Link copied to clipboard
abstract var focusVisible: Boolean

If true, the component is being focused using keyboard.

Link copied to clipboard
abstract var getRootProps: Props

Resolver for the root slot's props.

Link copied to clipboard
abstract var highlighted: Boolean

If true, the component is being highlighted.

Link copied to clipboard
abstract var index: Number

0-based index of the item in the menu.

Link copied to clipboard
abstract var rootRef: RefCallback<Element>?

The ref to the component's root DOM element.

Link copied to clipboard
abstract var totalItemCount: Number

Total number of items in the menu.