Interactions
Tabs
Elements
The component is composed of multiple elements:
tabs
the wrappertabs__controls
the wrapper of the controls elementstabs__item
a single trigger element
tabs__content
the wrapper of the tabs contents- `tabs__panel a single content element
Content 1
Content 2
Properties
Add classes to the wrapper class to change the style of the component.
Direction
Changes the direction of the tabs (padding around elements).
class="tabs"
Default
Content 1
Content 2
class="tabs tabs--portrait"
Content 1
Content 2
Dense
Remove the background color.
class="tabs tabs--dense"
Content 1
Content 2
Default
Add a class to a tab__item
element to change the default opened tab.
class="tabs__item tabs--default"
Content 1
Content 2