shadcn.io is not affiliated with official shadcn/ui
Breadcrumb examples · Standard
Breadcrumb with Icons (Standard) for React
A breadcrumb trail with an icon beside the text of every crumb.
Every crumb pairs an icon with its word: a folder beside Home and Components and a file beside the current page. The icon tells the kind of each level at a glance while the text keeps the trail readable.
Preview
Installation
FAQ
How are the icons paired with the text?
Home and Components each have a FolderIcon, the current page a FileTextIcon, all size-4. The links and the page take flex items-center gap-1.5, so icon and word sit on one line.
Do the icons need labels?
No. The words beside them already name each crumb, so the icons are hidden from assistive tech.
How do I pick the icon for each level?
From the kind of each level in your data: a folder for a section, a file for a document. Keep the mapping fixed so the same kind always shows the same icon.
Which separator sits between the crumbs?
An empty BreadcrumbSeparator renders a chevron, hidden from assistive tech.
Related
- Breadcrumb with Icons (Home Icon)A breadcrumb trail with a home icon for
- 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 Slash Separator (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Bullet Separator (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Ellipsis (Standard)A breadcrumb trail with a text Home link