About this set
Four breadcrumb trails that show where a page sits in a site. Chevron puts small SVG arrows between the levels. Slash uses a CSS “/” separator for a lighter, docs-style trail. Filled trail wraps the path in a white rounded capsule, which reads well on a grey page header. Collapsed middle keeps the first and last levels visible and folds the rest behind a “…” button that opens a small list of the hidden levels, for deep paths that would otherwise wrap onto several lines. Use the chevron or slash trail above page titles, the capsule inside a toolbar, and the collapsed trail for file browsers and deep documentation. Each trail is an ordered list inside nav aria-label=”Breadcrumb”, and the last item is plain text marked aria-current=”page”. The chevrons are aria-hidden SVGs. The collapsed levels use a native details element, which opens with a click, Enter or Space and works without JavaScript; a short script adds Esc to close it and return focus to the “…” button, and closes it on an outside click or when focus moves away. Every trail wraps instead of overflowing on narrow screens.
What’s included
- Chevron, slash, filled capsule and collapsed-middle trails
- Ordered list in nav aria-label="Breadcrumb" with aria-current="page"
- Chevron separators are aria-hidden SVGs
- Hidden levels behind a native details disclosure with Esc support
- Bootstrap version uses .breadcrumb, --bs-breadcrumb-divider and a Dropdown for the hidden levels
Accessibility
Each trail is an ordered list in a nav labelled Breadcrumb, and the current page is text with aria-current="page". The "…" control is named "Show the rest of the path", exposes whether it is expanded, and Esc closes its list and returns focus to it. Links and the button show an indigo :focus-visible outline.
Customise it
Change --bc-ink, --bc-muted, --bc-sep and --bc-hover on .bc. In Bootstrap set --bs-breadcrumb-divider (an SVG data URL or a string such as '/') and --bs-breadcrumb-divider-color on the .breadcrumb; in Tailwind edit the #667085 and #c3c9d5 values.



















