Appearance
Top Navigation Item
SCATopNavigationItem is an entry of the top bar: an icon, a label and an optional trailing action icon. Icon names are typed (IconName); see Icons.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Text. Without it the item is icon-only. |
icon | IconName | — | Icon before the label (20 px, 14 px in symbolAndText). |
viewMode | 'text' | 'symbol' | 'symbolAndText' | 'text' | Text only, icon only, or a compact icon above the text. |
appearance | 'normal' | 'inverted' | 'normal' | inverted is for dark bars. |
selected | boolean | false | The current page. |
active | boolean | false | Pressed or open look (e.g. while its menu is open). |
disabled | boolean | false | Disabled item. |
actionIconActive | boolean | false | Highlights the actionIcon slot content. |
as | string | Component | 'button' | Element or component, e.g. RouterLink. Attributes and listeners (@click, to, …) go to it. |
Slots
| Slot | Description |
|---|---|
actionIcon | Trailing action, usually an SCASvgIcon (rendered only when it has content). |
There are no emits: listen to @click on the item.