Skip to main content

Tabs

The Tabs component organizes content into sections that can be navigated via tabbed controls.

Example

Content for Tab 1

Props

Tabs Props

NameDescriptionType
defaultValueDefault active tabString
valueControlled active tabString
onValueChangeCallback on tab changeFunction

TabsList Props

NameDescriptionType
classNameAdditional classes for stylingString

TabsTrigger Props

NameDescriptionType
valueThe value associated with the tabString
classNameAdditional classes for stylingString
disabledDisables the tabBoolean

TabsContent Props

NameDescriptionType
valueThe value associated with the contentString
classNameAdditional classes for stylingString

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components.