Use the --tabs-block-size CSS variable to set the block-size of the base element.
When using Tabs inside flex structure, setting --tabs-block-size: 100% with flex:1 or with any specific block-size on Tabs will stretch the tabs to full height.
Match with an `id` set on a Tab to mark it as active on initial load
activeindicator
boolean
Deprecated attribute. It has no effect.
connotation
'accent' | 'cta'
Sets the connotation color of the active tab
gutters
'none' | 'small'
Sets the spacing inside the Tab Panels
orientation
'horizontal' | 'vertical'
The orientation
scrollablePanel
boolean
Sets whether the Tab Panel will be scrollable (if content height exceeds `block-size`)
tabsLayout
'align-start' | 'stretch'
Controls the layout of the tabs.
Property
Type
Default
Description
activeid
string
Match with an `id` set on a Tab to mark it as active on initial load
activeindicator
boolean
Deprecated attribute. It has no effect.
connotation
'accent' | 'cta'
Sets the connotation color of the active tab
gutters
'none' | 'small'
Sets the spacing inside the Tab Panels
orientation
'horizontal' | 'vertical'
The orientation
scrollable-panel
boolean
Sets whether the Tab Panel will be scrollable (if content height exceeds `block-size`)
tabs-layout
'align-start' | 'stretch'
Controls the layout of the tabs.
Slots
Name
Description
action-items
Slot for action items such as buttons or controls.
default
Default slot for tab and tab-panel elements.
Name
Description
action-items
Slot for action items such as buttons or controls.
default
Default slot for tab and tab-panel elements.
Events
Name
Type
Description
change
CustomEvent<HTMLElement>
Fires a custom 'change' event when a tab is clicked or during keyboard navigation
Name
Type
Description
change
CustomEvent<HTMLElement>
Fires a custom 'change' event when a tab is clicked or during keyboard navigation
Methods
Name
Params
Returns
Description
adjust
adjustment: number
void
Adjusts the active index by numerical increments.
Only enabled tabs are considered.
tab
Properties
Property
Type
Default
Description
connotation
'accent' | 'cta'
The connotation the tab should have.
disabled
boolean
When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute for more information.
iconTrailing
boolean
Indicates the icon affix alignment.
label
string
Indicates the tab's label.
removable
boolean
Adds a close button
shape
'rounded' | 'sharp'
The shape the tab should have.
tabIndex
number
Property
Type
Default
Description
connotation
'accent' | 'cta'
The connotation the tab should have.
disabled
boolean
When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute for more information.
icon-trailing
boolean
Indicates the icon affix alignment.
label
string
Indicates the tab's label.
removable
boolean
Adds a close button
shape
'rounded' | 'sharp'
The shape the tab should have.
tabindex
number
Slots
Name
Description
icon
The preferred way to add an icon to the component.
Name
Description
icon
The preferred way to add an icon to the component.