Breadcrumbs

A semantic navigation aid that tracks user location within a site hierarchy. Built with Tailwind CSS and full WAI-ARIA support, it features smart default separator logic that automates layout while allowing for text or icon overrides. Improves site crawlability and UX for complex structures.

Basic Usage

If no separator is provided, an arrow is shown between breadcrumb items automatically.

html
html
html

To ensure breadcrumbs are accessible to screen readers:

  • Wrap the structure in a <nav> element with an aria-label="Breadcrumb".
  • The last item (current page) should use aria-current="page" and preferably be a <span> rather than a link.
  • Separators should be ignored by screen readers (often handled via CSS or aria-hidden="true" if using a physical element).