Breadcrumb demos

A trail showing where you are in the site hierarchy, with links to each ancestor and, optionally, sibling pages in a dropdown. The current page is a link with aria-current="page". Tab through each to check focus styles. The last section has resizable containers.

1. Slash divider

Plain links; underline on hover.

2. Chevron divider

Masked SVG divider, never announced.

3. Underlined links

Links stay underlined so they don't rely on color alone, and the slash divider keeps the trail reading as a path.

4. Bar

One bordered container; each segment is a clear target, and a chevron between segments keeps it reading as a path.

4b. Joined pill

Segments share one rounded container, separated by a 1px border with no gap.

5. Arrow bar (corner-shape: bevel)

Each segment's end corners bevel to a point and overlap the next segment, stacked in reverse source order with sibling-index(). Without corner-shape or sibling-index() the segments stay plain with a divider.

6. More shapes

Slant / (corner-shape: bevel) and a notched arrow (border-shape, clip-path fallback)

6b. Right-to-left

Corner radii are logical, so arrow and slant mirror themselves. The notched arrow's polygons are mirrored under :dir(rtl); the chevron divider is flipped.

7. Pills

border-radius: 999px with a divider between pills.

8. Tags: bevel, scoop, notch

Backgrounds appear on interaction. Corner treatment comes from corner-shape.

9. Sibling dropdowns (popover)

Each ancestor can have a small button joined to its link that opens a list of sibling pages. The link still navigates to the ancestor. The current sibling is labeled “Current”.

10. Deep nesting, collapsed (container query)

Trails with more than three items get a “…” button (added by JS) that opens a popover listing the middle items. Below 40rem of container width the middle collapses; below 20rem the trail becomes a single “‹ Parent” link.

11. Resize playground

Use the width slider above each dashed box, or drag its bottom-right corner, to change the container's width.