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
❌
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
✅
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