Breadcrumb 05
A collapsible breadcrumb for deep hierarchies that folds middle levels into an accessible overflow menu button.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
Typography: Inter, with a system sans-serif fallback.
About Breadcrumb 05
Breadcrumb 05 is a breadcrumb component in the Breadcrumb Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 13, 2026.
- breadcrumb
- collapsed breadcrumb
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: roles menu, none, menuitem; aria-label, aria-haspopup, aria-expanded, aria-controls, aria-current.
- HTML elements used: nav, ul, ol, button, svg.
- Keyboard keys handled: Escape, Enter, ArrowUp, ArrowDown, Home, End, Tab.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Breadcrumb05.jsx, Breadcrumb05.types.ts, Breadcrumb05.tailwind.css
- Configurable through 6 props: first, collapsed, visible, currentLabel, defaultOpen, className.
- Uses React hooks: useEffect, useId, useLayoutEffect, useRef, useState.
- ARIA in the markup: roles menu, menuitem, none; aria-haspopup, aria-label, aria-expanded, aria-controls, aria-current.
- HTML elements used: nav, ul, ol, button, svg.
- Keyboard keys handled: Escape, Enter, ArrowUp, ArrowDown, Home, End, Tab.
- Includes a prefers-reduced-motion rule for its animation.