UseTabReturnValue

external interface UseTabReturnValue(source)

Properties

Link copied to clipboard
abstract var active: Boolean

If true, the tab is active (as in :active pseudo-class; in other words, pressed).

Link copied to clipboard
abstract var focusVisible: Boolean

If true, the tab has visible focus. This is a workaround for browsers that do not support this feature natively.

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 tab is highlighted.

Link copied to clipboard
abstract var index: Number

0-based index of the tab in the list of tabs.

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

Ref to the root slot's DOM element.

Link copied to clipboard
abstract var selected: Boolean

If true, the tab is selected.

Link copied to clipboard

Sets the focus-visible state of the tab. This is a workaround for browsers that do not support this feature natively.

Link copied to clipboard
abstract var totalTabsCount: Number

Total number of tabs in the nearest parent TabsList. This can be used to determine if the tab is the last one to style it accordingly.