Skip to content
Norn
Menu

norn-breadcrumbs

Where the page sits in the site: a trail of links from the top down, ending at the current page, marked with aria-current="page". Data-driven, so the last item is always the current one. The separators are decorative chevrons that point the reading way, so they mirror in right-to-left text.

<norn-breadcrumbs> a landmark, from @allons-y/webc-patterns

Examples

Color scheme
Width

Open on its own

Source
<norn-breadcrumbs :@items="([{&quot;href&quot;:&quot;#home&quot;,&quot;title&quot;:&quot;Home&quot;},{&quot;href&quot;:&quot;#docs&quot;,&quot;title&quot;:&quot;Docs&quot;},{&quot;href&quot;:&quot;/frames/patterns/norn-breadcrumbs/default/&quot;,&quot;title&quot;:&quot;Configuration&quot;}])"></norn-breadcrumbs>

Props

Write them with the @ prefix, and :@ for an expression.

NameTypeDescription
@items required { href: string, title: string }[] From the top level to the current page.

Slots

NameDescription
label The landmark name, read but not shown, as one element. Falls back to the site's componentStrings, then "Breadcrumb".

Tokens

The global tokens from tokens.json the component reads. Set one in a project's tokens.css to change it everywhere.

Type a value to try it in every example above. Reset puts the default back.

Token Type Default Override
--norn-ui-accentThe brand color, shared by every component. <color> #2346d4
--norn-text-baseText color. <color> light-dark(#16181d, #eceef3)
--norn-text-mutedSecondary text color. <color> light-dark(#4b5160, #a4abba)
--norn-font-size-sSmall text: captions, code, navigation, and notes. <length> 0.875rem
--norn-space-2xsSmallest spacing step. <length> 0.25rem
--norn-space-xsExtra small spacing step. <length> 0.5rem