Skip to content

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 ​

PropTypeDefaultDescription
labelstring—Text. Without it the item is icon-only.
iconIconName—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.
selectedbooleanfalseThe current page.
activebooleanfalsePressed or open look (e.g. while its menu is open).
disabledbooleanfalseDisabled item.
actionIconActivebooleanfalseHighlights the actionIcon slot content.
asstring | Component'button'Element or component, e.g. RouterLink. Attributes and listeners (@click, to, …) go to it.

Slots ​

SlotDescription
actionIconTrailing action, usually an SCASvgIcon (rendered only when it has content).

There are no emits: listen to @click on the item.

Icon ​

Appearance ​

ActionIcon ​

View mode ​