shadcn.io is not affiliated with official shadcn/ui
Breadcrumb examples · Standard
Breadcrumb with Select (Standard) for React
A breadcrumb trail with a text Home link 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 (Home Icon)A breadcrumb trail with a home icon and
- Breadcrumb with Dropdown (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Ellipsis (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Border (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Bullet Separator (Standard)A breadcrumb trail with a text Home link
- Breadcrumb with Icons (Standard)A breadcrumb trail with an icon beside