Skip to content

Tabs ​

SCATabGroup lays out SCATab buttons in a row. Both are presentational: the page keeps the selected tab and sets selected on the right tab. Icon names are typed (IconName); see Icons.

Props ​

SCATabGroup ​

PropTypeDefaultDescription
type'default' | 'ghost''default'Group style. Match it on every SCATab.
alignItemsStretchbooleanfalseStretch the tabs to the full width.
noBorderbooleanfalseHide the bottom border line.

The default slot takes the tabs. icon and selected are declared on the group but unused.

SCATab ​

PropTypeDefaultDescription
type'default' | 'ghost''default'Tab style.
iconIconName—Icon before the label (20 px). Without a label the tab is icon-only.
selectedbooleanfalseSelected look.
disabledbooleanfalseDisable the tab.
dotbooleanfalseShow a small dot after the label (e.g. unsaved or unread).
labelstring—Plain-text copy of the label; reserves the width of the bold selected state so tabs do not jump.

The default slot is the label. A tab is a <button>: listen to @click.

Type ​

align-items-stretch ​

With Icon ​

Icon Only ​

Dot ​

No border ​