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.
Props
Type
Required
children
ReactNode
✅
children
The children prop can either receive a string or a complete strucure. You can use Badges, Icons and Loaders.
<TabGroup.Tabvalue="tab1"> <TabGroup.Title> I am tab 1 <TabGroup.Badgecolor="green"isCounter> 10 </TabGroup.Badge> </TabGroup.Title> <TabGroup.Content>Some content at 1</TabGroup.Content></TabGroup.Tab>;
<TabGroup.Tabvalue="tab1"> <TabGroup.Title> I am tab 1 <TabGroup.IconiconName='apps' /> </TabGroup.Title> <TabGroup.Content>Some content at 1</TabGroup.Content></TabGroup.Tab>;
<TabGroup.Tabvalue="tab1"> <TabGroup.Title> I am a title 1 <TabGroup.Loader /> </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.
Props
Type
Required
children
ReactNode
✅
children
The structure/string passed to the subcomponent used to render the content, this can render any structure, including badges, paragraphs, loaders, icons, etc.
You have the option to use the<TabGroup.Badge />,, 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.