Appearance
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
| Prop | Type | Default | Description |
|---|---|---|---|
type | 'default' | 'ghost' | 'default' | Group style. Match it on every SCATab. |
alignItemsStretch | boolean | false | Stretch the tabs to the full width. |
noBorder | boolean | false | Hide the bottom border line. |
The default slot takes the tabs. icon and selected are declared on the group but unused.
SCATab
| Prop | Type | Default | Description |
|---|---|---|---|
type | 'default' | 'ghost' | 'default' | Tab style. |
icon | IconName | — | Icon before the label (20 px). Without a label the tab is icon-only. |
selected | boolean | false | Selected look. |
disabled | boolean | false | Disable the tab. |
dot | boolean | false | Show a small dot after the label (e.g. unsaved or unread). |
label | string | — | 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.