Breadcrumb
Where the current page sits in the site's hierarchy.
When to use
- Use when
- Pages sit in a hierarchy more than two levels deep and people move up it.
- Avoid when
- The site is flat, or the trail would only repeat the page title.
Installation
The source lands in src/components/ui/breadcrumb.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
Verified
- Size
- 1.5 kB gzipped on its own, 4.6 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 1 story
- Behavior
- 1 interaction test in Storybook
- React Doctor
- React Doctor finds nothing