Tabs

Reduce visual complexity of long forms using tabs.

#

#

#

Add the following props to a Tab to add decorations to the tab:

  • Add the count prop to display a gray badge with the count within the Tab.
  • Add the tooltip prop to add a tooltip to the text.
  • Add the statusIndicator prop to add an extra indicator to the right of the Tab text.

Use these instead of directly rendering additional components within the Tab itself.

#

There are cases when state of tabs is managed elsewhere. For example, when tabs are switched based on the current URL.

#

#

  • When there are many related sections and one section needs to be shown at a time.

#

  • When content from multiple tabs needs to be shown at the same time.
  • As a way to indicate progress of filling out a form or a similar component.
  • As a way to filter content.

#

  • Use sentence case for tab titles.
  • Keep tab titles to 3 words max.

#

#

Inherits margin props.

NameDefaultDescription

#

NameDefaultDescription
children

ReactNode

Tabs.

#

NameDefaultDescription

#

NameDefaultDescription

#

NameDefaultDescription

On this page

  • Example
  • Usage
  • Counts, tooltips, and status indicators
  • Controlled
  • Guidelines
  • When to use
  • When not to use
  • Content
  • Props
  • Tabs
  • TabList
  • Tab
  • TabPanels
  • TabPanel