5 Tailwind1 with JSPublished 2026-10-04Free · no sign-up
Six breadcrumb trails built with Tailwind: a slash trail, a home icon with chevrons, pills, arrow-shaped checkout steps, an admin page header and a trail that collapses its middle levels on phones.
A standard breadcrumb in Tailwind: a nav landmark with aria-label, an ordered list, separators added with a before: utility on every item after the first using an arbitrary [&+li] variant, and the current page marked with aria-current.
A breadcrumb that starts with a home icon and uses SVG chevrons between items. The icon link has an accessible name of Home, chevrons are aria-hidden, and a long current page name truncates with Tailwind's truncate utility.
Each level as a rounded pill joined by small dots, with the current page filled in the brand colour. Hover and focus-visible utilities lift a pill slightly, which signals clearly which level you are about to open.
Checkout steps shaped as arrows with an arbitrary clip-path polygon value, overlapping slightly with a negative margin. Completed steps are links, the current step is highlighted, and the future step is plain muted text.
An admin page header with a small breadcrumb above the page title and an action button on the right. flex-wrap moves the button under the title on narrow screens, and the breadcrumb sits in its own labelled nav landmark.
A deep breadcrumb that hides its middle levels behind an ellipsis button on small screens, using max-sm:hidden on the middle items. On wider screens every level shows; on phones the button reveals them and reports its state with aria-expanded.
The arbitrary variant [&>li+li]:before:content-['/'] on the list adds a separator before every item except the first, so the list items stay clean and the separators are not read aloud.
Current page
Mark the last item with aria-current="page", or aria-current="step" for checkout steps, and show it as text rather than a link.
Arrow shapes
Arbitrary clip-path values such as [clip-path:polygon(...)] cut each step into an arrow; a negative margin overlaps the points neatly.
Phones
max-sm:hidden hides middle levels on small screens, and a button reveals them, so long trails do not wrap onto several lines.
Frequently asked questions
Do these need JavaScript?
Only the collapsing breadcrumb.
Can I add structured data?
Yes. Add BreadcrumbList JSON-LD to the page; the CSS breadcrumbs collection includes a microdata example.