shadcn.io is not affiliated with official shadcn/ui
Breadcrumb examples · Home Icon
Breadcrumb with Slash Separator (Home Icon) for React
A breadcrumb trail with a home icon and slash icons between the crumbs, like a file path.
The home icon, Components and the current page, separated by a slash icon so the trail reads like a path. It suits file browsers, repositories and docs where people think in paths. The slash is a Lucide SlashIcon, hidden from assistive tech.
Preview
Installation
FAQ
How is the slash drawn?
A SlashIcon is the child of BreadcrumbSeparator, in place of the default chevron. The separator is hidden from assistive tech.
How is the home icon named?
The link to / holds only a HomeIcon at size-4, hidden from assistive tech, so the link carries aria-label="Home". Screen readers announce it as the Home link.
How big is the slash?
The separator styles size its icon, the same as the default chevron, so the slash lines up with the text. Add a size class to the icon to change it.
Does the slash work right to left?
The trail reads from the right in a right-to-left layout. A slash doesn't point, so unlike the chevron it needs no flipping.
Related
- Breadcrumb with Slash Separator (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Bullet Separator (Home Icon)A breadcrumb trail with a home icon and
- Breadcrumb with Icons (Home Icon)A breadcrumb trail with a home icon for
- Breadcrumb with Border (Home Icon)A breadcrumb trail with a home icon
- Breadcrumb with Dropdown (Home Icon)A breadcrumb trail with a home icon and a
- Breadcrumb with Ellipsis (Home Icon)A breadcrumb trail with a home icon and