shadcn.io is not affiliated with official shadcn/ui
Breadcrumb examples · Home Icon
Breadcrumb with Dropdown (Home Icon) for React
A breadcrumb trail with a home icon and a folder menu that lists the collapsed sections of the path.
The middle of the trail is a folder button that opens a Dropdown Menu with Documentation, Themes and GitHub. The home icon, Components and the current page stay in line around it. Use it where an ellipsis would hide levels people still need to reach.
Preview
Installation
FAQ
How is the menu built?
DropdownMenu wraps a DropdownMenuTrigger and a DropdownMenuContent with align="start" and three DropdownMenuItems.
How is the folder button named?
Its only child is a FolderIcon, hidden from assistive tech, so the button carries aria-label="Show sections". Without it the button would have no name.
Do the menu items navigate?
Not in the demo: they are plain items. Make each one a link to its section, or handle the selection and route from there.
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.
Related
- Breadcrumb with Dropdown (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Ellipsis (Home Icon)A breadcrumb trail with a home icon and
- Breadcrumb with Select (Home Icon)A breadcrumb trail with a home icon and
- Simple Dropdown with Icons Dropdown MenuA short menu behind a dots button with an
- 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