Appearance
Sidebar Navigation Item
SCASidebarNavigationItem is one row of the sidebar tree: an optional expander, an icon, a label that gets a tooltip when truncated, and an actions menu that appears on hover. Nested items go in the default slot. Icon names are typed (IconName); see Icons.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | HighlightedText | — | Row text; HighlightedText (from @scayla/core) marks search matches. Required. |
icon | IconName | — | Icon before the label (20 px). |
level | number | 0 | Nesting depth; indents the row. |
expandable | boolean | false | Show the expander caret and toggle the children. |
expanded | boolean | false | Children visible. Two-way via v-model:expanded. |
selected | boolean | false | Selected row. |
isActive | boolean | false | Highlights the icon and the caret (the route is inside this item); on touch devices it also keeps the actions menu available. |
disabled | boolean | false | Disabled row; no hover actions. |
isMini | boolean | false | Compact layout (24 px rows, smaller indent). |
as | string | Component | 'button' | Element or component of the row, e.g. RouterLink. Attributes and listeners (@click, to, …) go to it. |
favorite | boolean | false | Declared but not used by the row. |
Slots
| Slot | Description |
|---|---|
default | Child items; shown while expanded. |
actions | Content of the actions dropdown (dots-three button) shown on hover. Without it the row has no menu. |
Emits
| Event | Payload | When |
|---|---|---|
update:expanded | boolean | The expander is clicked. |