Sketchbook
On this page

Tag <sb-breadcrumb> · status stable · version 0.1.0

Example

Home Library Reports
<sb-breadcrumb label="Breadcrumb">
  <sb-breadcrumb-list>
    <sb-breadcrumb-item><sb-breadcrumb-link href="#">Home</sb-breadcrumb-link></sb-breadcrumb-item>
    <sb-breadcrumb-separator></sb-breadcrumb-separator>
    <sb-breadcrumb-item><sb-breadcrumb-link href="#">Library</sb-breadcrumb-link></sb-breadcrumb-item>
    <sb-breadcrumb-separator></sb-breadcrumb-separator>
    <sb-breadcrumb-item><sb-breadcrumb-page>Reports</sb-breadcrumb-page></sb-breadcrumb-item>
  </sb-breadcrumb-list>
</sb-breadcrumb>

Properties

Name Type Default Notes
label text Breadcrumb Accessible name of the navigation landmark. Translate it, and make it unique when a page has several navigation landmarks.

Parts

A link to an ancestor page.

Name Type Default Notes
href text Link address. Without it the element renders an anchor without href, which is not focusable or a link. javascript:, vbscript: and data: URLs are dropped: the link renders without href and a console warning names it (SB-0115).

<sb-breadcrumb-ellipsis>

Stands for collapsed steps. Announced with a label so the gap is not silent.

Name Type Default Notes
label text More Text read in place of the dots. Translate it.

Keyboard

Key Does
Tab moves through the links in order
Enter follows the focused link

Accessibility

  • Role: navigation (landmark) containing a list of listitems
  • Native element: nav, a
  • Accessible name: label prop as aria-label on the inner nav; link text for links.

View as Markdown