Breadcrumb

A hierarchy trail with automatic separators and current-page semantics.

Import#

import { Breadcrumb } from "astralis-ui";

Separators are inserted automatically between items — you never render them by hand, so they can't drift out of sync.

Custom separator#

Props#

PropTypeDefaultDescription
separatorReactNodechevronGlyph between items (rendered aria-hidden).

Parts#

PartRendersNotes
Breadcrumb.ItemliOne trail entry.
Breadcrumb.Linka (or as={Link})isCurrent renders a non-interactive <span aria-current="page">. Pass your router's Link via as.

Accessibility#

  • The root is <nav aria-label="Breadcrumb"> with an ordered list inside — the APG breadcrumb pattern.
  • The current page is marked with aria-current="page" and rendered non-interactive; separators are aria-hidden.