Description
- Tabs organize content across different panes and table views.
- A tab lets a user easily navigate and switch between content.
- Use tabs to structure content that does not need to be visible all at the same time.
Anatomy
Anatomy
Size
- Available in M size and L size.
- The tab width adjusts to the label width with consistent padding.
States
Component-specific states
The state of the slots used in a tab does not depend on the state of the tab.
Default
Hover
Selected
Focus
Hover focus
Selected focus
Validation states
Error
Hover error
Selected error
Caution
Hover caution
Selected caution
Variations
Orientation
Use either horizontal or vertical tabs. Do not use both at the same time.
Horizontal
Vertical
Tab overflow
On a responsive device, when the screen is too small to show all tabs, tab overflow lets users navigate to hidden tabs.
Tab overflow
Slots
With icon
With pill
With badge
Color mode
Light
Dark
Dos and don'ts
Do
Don't
Don't