Header bar
A brand link and primary navigation with the current destination marked by the server.
The component library is marked as the current section.
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 header-barUsage
{% import "suprnova-ui/header-bar/header-bar.html" as header_bar %}
{% call header::header_bar("header", "Suprnova") %}{% call header::header_link("/components", "Components", current=true) %}{% endcall %}{% endcall %}Examples
Section navigation
A custom brand destination and label frame the component guides.
Keyboard and accessibility
suprnova.header-bar - the application's primary navigation landmark (NAV-001, NAV-004). Destinations are anchors with real route URLs; the current one carries aria-current from the server-bound `current` value, never from the browser's location. Pair it with the drawer for compact layouts; this view holds no collapse state of its own. Without a `brand_href` the brand links to the home page under the public root, so the default works behind a path prefix too (PFX-011).
API reference
header_bar
| Parameter | Default | Description |
|---|---|---|
id | Required | Unique header ID. |
brand | Required | Visible brand name. |
brand_href | "" | Brand destination; empty uses the home page under the public root. |
label | "Primary" | Accessible name of the primary navigation. |
header_link
| Parameter | Default | Description |
|---|---|---|
href | Required | Real destination URL. |
text | Required | Visible destination name. |
current | false | Server-authoritative current destination, marked with aria-current. |
