Breadcrumbs

An ordered path of ancestor links and a non-linked current page.

Ancestor links lead to real pages; the current item is text.

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 breadcrumbs

Usage

html
{% import "suprnova-ui/breadcrumbs/breadcrumbs.html" as breadcrumbs %}
{% call crumbs::breadcrumbs("trail") %}{% call crumbs::crumb("/components", "Components") %}{% endcall %}{% call crumbs::crumb_current("Breadcrumbs") %}{% endcall %}{% endcall %}

Examples

Short path

A two-level path with a label that distinguishes its navigation region.

Open in new tab

Keyboard and accessibility

suprnova.breadcrumbs - the path to the current document (NAV-001): ancestors are anchors with canonical URLs, the current item is text with aria-current and no self link.

API reference

breadcrumbs

ParameterDefaultDescription
idRequiredUnique navigation ID.
label"Breadcrumb"Accessible name of the breadcrumb region.

crumb

ParameterDefaultDescription
hrefRequiredCanonical URL of an ancestor page.
textRequiredVisible ancestor name.

crumb_current

ParameterDefaultDescription
textRequiredCurrent page name, rendered without a link.