UseMenuItemReturnValue

external interface UseMenuItemReturnValue(source)

Properties

Link copied to clipboard
abstract external var disabled: Boolean

If true, the component is disabled.

Link copied to clipboard
abstract external var focusVisible: Boolean

If true, the component is being focused using keyboard.

Link copied to clipboard
abstract external var getRootProps: (externalProps: Props?) -> Props

Resolver for the root slot's props.

Link copied to clipboard
abstract external var highlighted: Boolean

If true, the component is being highlighted.

Link copied to clipboard
abstract external var index: Number

0-based index of the item in the menu.

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

The ref to the component's root DOM element.

Link copied to clipboard
abstract external var totalItemCount: Number

Total number of items in the menu.