Code
In context
Install · Free Web Component
One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.
The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:
Pro · React + TypeScript Pro
One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.
- React component (
itemswith icons,max,onNavigate,open/onOpenChange) with TypeScript types and the full source - Sunset, Mint and Mono tints, plus custom tints from Brand Fit
- The vanilla Web Component with every tint, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| <a href> | children | — | The levels, in order. The last child is the current page: it is shown pressed in, gets aria-current="page" and is never a link. An <svg> inside a link is kept as its icon. |
| max | number | 0 | Most levels shown at once: the first one and the last max − 1 stay, the rest fold into the “…” chip. 0 shows as many as fit. |
| open | boolean | off | The menu of folded levels is open. Fires toggle with detail.open when the user opens or closes it. |
| size | number (px) | 14 | Text size; the chips, the chevrons and the menu scale with it. |
| aria-label | string | 'Breadcrumb' | Accessible name of the navigation. |
| theme | 'light' | 'dark' | 'light' | For a light or a dark page; the component has no background of its own. |
| sound | boolean | off | A porcelain tap as the menu opens and closes. Also on for everything inside an element with data-ui-sound="on". |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the light under the current page and of the glow a chip casts as it lifts, or a custom tint. Free build ships Aurora only. |
The markup is what search engines and screen readers expect: a navigation landmark, an ordered list, one link per level and aria-current="page" on the last. Whatever max says, the path also folds when it is wider than its container — measured on the element, so it works inside a card or a sidebar — and unfolds when there is room again; if even “first … last” does not fit, the current page is cut with an ellipsis. The “…” chip is a button with aria-expanded: Enter or Down opens the menu, the arrows, Home and End walk it, Escape, Tab-ing away or a click outside closes it and hands focus back. Clicking a level fires a cancelable navigate event with detail.href and detail.label. Folded levels stay in the page as links (in the menu), so crawlers still see the whole path; add your own BreadcrumbList JSON-LD for rich results. All CSS, no WebGL.
More components
- Glass Nav
- Pearl Tabs
- Glass Command
- Glass Tabbar
- Glass Sidebar
- Pearl Pagination
- Tide Slide
- Pearl Code
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Glass Toast
- Pearl Select
- Glass Sheet
- Pearl Accordion
- Glass Tip
- Pearl Calendar
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- Pearl Chip
- Pearl Empty
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- Plasma Orb
- Voice Wave
- Plush Buddy
- Gummy Agent
- Glass Menu
- Pearl Pricing
- Glass Bento
- Quote Wall
- Glass Cta
- Magnet Button
- Beam Border
- Spotlight Card
- Scratch Reveal
- Glass Dock
- Pearl Slider
- Pearl Segmented
- Liquid Metal Button
- Mercury Orb
- Prompt Input
- Voice Orb
- Aurora Ring
- Glass Toggle
- Firefly Button
- Pearl Button
- Pearl Loader
- Alien Face
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel