SubComponents
Tab
The Tab subcomponent is used to wrap the content and title of each tab.
Tab API
This component extends the native <div> API. That's why the className prop is not included in the table.
value
string
β
isDisabled
boolean
β
onClick
(event: React.MouseEvent) => void;
β
children
ReactNode
β
value
Necessary for managing the chosen tab, a string that subsequently gets passed to the onChangefunction for reordering the value.
onClick
Function that is executed when the tab is clicked. Usually used when changing the selectedTab when using a controlled approach.
children
The Tab subcomponent must consistently include Tab.Title and Tab.Content as its child elements.
Divider
Subcomponent employed to visually separate tabs, offering flexibility in its placement.
Divider API
This component extends the native <div> API.
Title
The tab's title, which can either be a string or an HTML structure.
Title API
This component extends the native <div> API. That's why the className prop is not included in the table.
children
ReactNode
β
children
The children prop can either receive a string or a complete strucure. You can use Badges, Icons and Loaders.
You have the option to use the<TabGroup.Badge />, <TabGroup.Icon />, and <TabGroup.Loader /> without the need for installation or importing. Please note that icons and loaders will consistently maintain a default size that cannot be overridden.
Content
This subcomponent controls the body rendered inside the component, it can be wether a string or an HTML structure.
Content API
This component extends the native <div> API. That's why the className prop is not included in the table.
children
ReactNode
β
Last updated