clickOnEnter
Description
Whether or not trigger click on pressing Enter.
Type
booleanDefault
trueLeave Yamada UI a star
StarTabs is a component for switching between different display areas.
Description
Whether or not trigger click on pressing Enter.
Type
booleanDefault
trueDescription
Whether or not trigger click on pressing Space.
Type
booleanDefault
trueDescription
Disable the touch device behavior.
Type
booleanDefault
trueDescription
If true and isDisabled, the element will have only aria-disabled set to true.
Type
booleanDefault
falseDescription
Whether or not to focus the element when it is clicked.
If true, the element will receive focus upon click.
Type
booleanDefault
trueDescription
If true, the element will be disabled. It will set the disabled HTML attribute.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true and isDisabled, the element will have only aria-disabled set to true.
Deprecated
Use focusable instead.
Type
booleanDefault
falseDescription
The ref for the element.
Type
type ONLY_FOR_FORMAT =
| ((instance: HTMLButtonElement | null) => void)
| RefObject<HTMLButtonElement>Description
The alignment of the tabs.
Type
"center" | "end" | "start"Description
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Default
"primary"Description
The index of the selected tab.
Type
numberDescription
If true, disable ripple effects when pressing the tab.
Type
booleanDefault
falseDescription
If true, tabs will stretch to width of the tablist.
Type
booleanDefault
falseDescription
The index of the selected tab.
Type
numberDescription
If true, tabs will stretch to width of the tablist.
Deprecated
Use fitted instead.
Type
booleanDefault
falseDescription
If true, rendering of the tab panel's will be deferred until it is selected.
Deprecated
Use lazy instead.
Type
booleanDefault
trueDescription
If true, the tabs will be manually activated and display its panel by pressing Space or Enter.
If false, the tabs will be automatically activated and their panel is displayed when they receive focus.
Deprecated
Use manual instead.
Type
booleanDefault
falseDescription
If true, rendering of the tab panel's will be deferred until it is selected.
Type
booleanDefault
trueDescription
The lazy behavior of tab panels' content when not active. Only works when isLazy={true}.
- unmount: The content of inactive tab panels are always unmounted.
- keepMounted: The content of inactive tab panels is initially unmounted, but stays mounted when selected.
Type
LazyModeDefault
'unmount'Description
If true, the tabs will be manually activated and display its panel by pressing Space or Enter.
If false, the tabs will be automatically activated and their panel is displayed when they receive focus.
Type
booleanDefault
falseDescription
The callback invoked when the index changes.
Type
(index: number) => voidDescription
The orientation of the tab list.
Type
"horizontal" | "vertical"Default
'horizontal'Description
The size of the Tabs.
Type
"sm" | "md" | "lg"Default
"md"Description
Props for tab list component.
Type
TabListPropsDescription
Props for tab panels components.
Type
TabPanelsPropsDescription
The variant of the Tabs.
Type
"line" | "rounded" | "rounded-solid" | "rounded-subtle" | "sticky" | "sticky-solid" | "sticky-subtle" | "unstyled"Default
"line"Edit this page on GitHub