shadcn.io is not affiliated with official shadcn/ui
Breadcrumb examples · Standard
Breadcrumb with Slash Separator (Standard) for React
A breadcrumb trail with a text Home link and slash icons between the crumbs, like a file path.
Home, 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 trail announced?
Breadcrumb renders a nav labeled breadcrumb around an ordered list, so screen readers announce a breadcrumb landmark and the number of items. Home and Components are read as links.
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 (Home Icon)A breadcrumb trail with a home icon and
- Breadcrumb with Bullet Separator (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Icons (Standard)A breadcrumb trail with an icon beside
- Breadcrumb with Border (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Dropdown (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Ellipsis (Standard)A breadcrumb trail with a text Home link