Tabs

Tabs help to organize related content in a single view which user make easy to explore and switch between different views.

Default

Default Tabs usage.

Pill

You can change the Tabs style by setting variant to pill.

Icons

TabNav icon prop allow us to insert icon with auto spaced.

Disabled

Set disabled to TabNav prevent user execute click event.

Controlled Tabs

Example of controlled Tabs.

API

Tabs
PropDescriptionTypeDefault
defaultValueInitial value for uncontrolled Tabsstring-
onChangeCallback when Tab value is changed(tabValue: string) => void-
valueControlled value of the tab to activatestring-
variantTabs style'underline' | 'pill'-
Tabs.TabList
PropDescriptionTypeDefault
Tabs.TabNav
PropDescriptionTypeDefault
disabledWhether to disable the tabboolean-
iconTab iconReactNode | string-
value(*)An unique value matched with TabContentstring-
Tabs.TabContent
PropDescriptionTypeDefault
value(*)An unique value matched with TabNavstring-