Docs
Components
Tabs

Tabs

Examples

breadcrumb

Props

Tabs

PropTypeDescriptionRequired
defaultValuestringThe value of the tab that should be active by default.Yes
childrenReact.ReactNodeThe content of the tabs, typically TabList and TabContent components.Yes
classNamestringAdditional CSS class names for the tabs container.No
variantsstyleOne, styleTwo, styleThreeDetermines the style of the tab list and triggers.Yes

TabList

PropTypeDescriptionRequired
childrenReact.ReactNodeThe list of TabTrigger components.Yes
classNamestringAdditional CSS class names for the tab list container.No

TabTrigger

PropTypeDescriptionRequired
valuestringA unique identifier for the tab. Used to determine if the tab is active.Yes
childrenReact.ReactNodeThe content inside the tab trigger (e.g., text or icons).Yes
classNamestringAdditional CSS class names for the tab trigger.No
...propsHTMLAttributes<HTMLButtonElement>Additional attributes for the <button> element.No

TabContent

PropTypeDescriptionRequired
valuestringA unique identifier that matches the corresponding TabTrigger's value.Yes
childrenReact.ReactNodeThe content to display when this tab is active.Yes
classNamestringAdditional CSS class names for the tab content container.No