Sidebar
Section links grouped in native disclosures with browser-local collapse state.
An expanded navigation group with an authoritative current link.
Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.
Installation
suprnova live:add sidebarUsage
{% import "suprnova-ui/sidebar/sidebar.html" as sidebar %}
{% call sidebar::sidebar("sections") %}{% call sidebar::sidebar_group("guides", "Guides") %}{% call sidebar::sidebar_link("/docs", "Manual", current=true) %}{% endcall %}{% endcall %}{% endcall %}Examples
Collapsible groups
One group starts expanded and another collapsed; toggling is local.
Keyboard and accessibility
suprnova.sidebar - section navigation with collapsible groups (NAV-001, NAV-004). Each group is a native details element, keyed and preserved, so its open state is the browser's and survives a morph; the current link carries aria-current from the server-bound `current` value.
API reference
sidebar
| Parameter | Default | Description |
|---|---|---|
id | Required | Unique sidebar navigation ID. |
label | "Sections" | Accessible name of the section navigation. |
sidebar_group
| Parameter | Default | Description |
|---|---|---|
key | Required | Stable group identity preserved across morphs. |
title | Required | Visible disclosure heading. |
open | true | Initial expanded state; subsequent toggles belong to the browser. |
sidebar_link
| Parameter | Default | Description |
|---|---|---|
href | Required | Real destination URL. |
text | Required | Visible destination name. |
current | false | Server-authoritative current destination, marked with aria-current. |
