shadcn.io is not affiliated with official shadcn/ui
Breadcrumb examples · Home Icon
Breadcrumb with Select (Home Icon) for React
A breadcrumb trail with a home icon and an inline select for switching between sibling sections.
The middle crumb is a small Select set to Components, with Documentation and Themes beside it. People switch to a sibling section without going up a level. Use it for workspaces, versions or categories at the same depth.
Preview
Installation
FAQ
How does the select start on Components?
defaultValue is components, and items lets SelectValue show its label.
How does the select fit in the line?
SelectTrigger takes size="sm", and the trigger is only as wide as its value, so it sits in the trail like a crumb.
How is the select named?
It has no visible label, so it carries aria-label="Section" and is announced as the Section select with its value.
Does picking an option change the page?
Not in the demo: the select is uncontrolled and nothing listens.
onValueChange receives the new value; navigate there.
Related
- Breadcrumb with Select (Standard)A breadcrumb trail with a text Home link
- 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
- Breadcrumb with Border (Home Icon)A breadcrumb trail with a home icon
- 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