Breadcrumb
Trail-of-links navigation for property, tour, cruise, and blog detail pages. Last item is the current page and always non-linked with aria-current='page'. Chevron separators between items; optional home icon on the first item; optional maxItems cap with '…' collapse of middle items for deep hierarchies.
With home icon
Pass showHomeIcon to prefix the first item with a small house icon — common on OTAs.
Custom separator
Pass any ReactNode as separator. A plain "/" is a common alternative.
Truncation (maxItems)
For deep hierarchies, pass maxItems and the middle collapses to a "…" — first + last stay visible. Booking.com pattern for city → neighbourhood → property paths.
maxItems={4} (from 7)
No cap (all 7)
Usage notes
- — Last item is always the current page. It renders non-linked with
aria-current="page", even if you accidentally include anhref. - — Wrapped in a
<nav aria-label="Breadcrumb">with an inner<ol>— matches WAI-ARIA breadcrumb pattern for screen readers. - — Uses semantic tokens (
text-muted-foreground/text-foreground) so it reads correctly on both light and dark surfaces. - — Presentational: parent supplies
hrefs. Wire to your framework's Link component by passing the resolved URL string.