RemixBreadcrumbs

A hierarchy of links to the current page in an application, specifically for Remix.

Usage

RemixBreadcrumbsExample.tsx
  1. 1
<RemixBreadcrumbs />

Here's the <RemixBreadcrumbs /> component in action.

Features

  • Automatically generates breadcrumbs based on the current route.
  • The last link is automatically marked as the current page using aria-current.

Usage Note

To include a route in the Breadcrumbs, add a breadcrumb attribute to your route's handle. Customize the attribute value to suit your needs.

docs.tsx
  1. 1
  2. 2
  3. 3
export const handle = {
breadcrumb: 'Docs',
}

You have complete control over which routes are included in the Breadcrumbs and you can customize the breadcrumb text for each route.

Source