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
✅
<TabGroup.Tab value="tab1">
<TabGroup.Title>
I am tab 1
<TabGroup.Badge color="green" isCounter>
10
</TabGroup.Badge>
</TabGroup.Title>
<TabGroup.Content>Some content at 1</TabGroup.Content>
</TabGroup.Tab>;
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