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.

Open in new tab

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

bash
suprnova live:add header-bar

Usage

html
{% 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.

Open in new tab

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

ParameterDefaultDescription
idRequiredUnique header ID.
brandRequiredVisible 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

ParameterDefaultDescription
hrefRequiredReal destination URL.
textRequiredVisible destination name.
currentfalseServer-authoritative current destination, marked with aria-current.