Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Breadcrumb
  3. API and Development

Breadcrumb

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
The breadcrumb primitives compose a navigation landmark showing the path from the site root to the current location. Use Breadcrumb as the <nav> wrapper (it renders the <ol> internally), BreadcrumbItem for each list row, BreadcrumbLink or asChild for links, BreadcrumbPage for the current page (non-link), BreadcrumbLabel for non-link text when a segment is not the current page, BreadcrumbSeparator for chevrons, and BreadcrumbEllipsis for collapsed middle segments.
Props
NameTypeDefaultDescription
labelLocalizedMessage—Accessible name of the landmark, such as "Breadcrumb". Name it so a page with two landmarks tells them apart.
childrenReactNode—One {@link BreadcrumbList }.
classNamestring—Optional module class from colocated CSS.
refRef<HTMLElement>—Ref to the nav.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Basic
Custom separator
With ellipsis
With non-navigable segment
Single back link
Previous
Breadcrumb / Usage
Next
Breadcrumb / Accessibility
On this page
Props
Storybook
Basic
Custom separator
With ellipsis
With non-navigable segment
Single back link