SubComponents

Tab

The Tab subcomponent is used to wrap the content and title of each tab.

Tab API

This component extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.

Props
Type
Required

value

string

βœ…

isDisabled

boolean

❌

onClick

(event: React.MouseEvent) => void;

❌

children

ReactNode

❌

chevron-rightvaluehashtag

Necessary for managing the chosen tab, a string that subsequently gets passed to the onChangefunction for reordering the value.

chevron-rightisDisabledhashtag

Controls if the tab should show a disabled state.

chevron-rightonClickhashtag

Function that is executed when the tab is clicked. Usually used when changing the selectedTab when using a controlled approach.

chevron-rightchildrenhashtag

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>arrow-up-right API.

Title

The tab's title, which can either be a string or an HTML structure.

Title API

This component extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.

Props
Type
Required

children

ReactNode

βœ…

chevron-rightchildrenhashtag

The children prop can either receive a string or a complete strucure. You can use Badges, Icons and Loaders.

circle-info

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>arrow-up-right API. That's why the className prop is not included in the table.

Props
Type
Required

children

ReactNode

βœ…

chevron-rightchildrenhashtag

The structure/string passed to the subcomponent used to render the content, this can render any structure, including badges, paragraphs, loaders, icons, etc.

Last updated