Breadcrumb
Usage
Include CSS
Import Tailwind and one full A3S UI style bundle.
Or import only the base CSS, Breadcrumb component CSS, and one style pack.
Using CDN or bundler imports? See the Installation page.
Add your breadcrumb HTML
Use a navigation landmark with an ordered list. Mark the current page with aria-current="page".
HTML structure
nav.breadcrumbis the root landmark and should includearia-label="Breadcrumb".olcontains the breadcrumb items in hierarchy order.li > arepresents navigable ancestors.li[aria-hidden="true"]represents a visual separator.[aria-current="page"]represents the current page.li > span[aria-hidden="true"]represents a collapsed ellipsis.
Breadcrumb items stay on one command row. When the available width is smaller than the path, the ordered list scrolls horizontally instead of wrapping separators onto another line. Collapse intermediate ancestors for persistently narrow surfaces.
Examples
Basic
Custom separator
Dropdown
Collapsed
- Home
- Components
- Breadcrumb