Home Components Breadcrumb
React Breadcrumb Components
8 free React breadcrumbs built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for page hierarchy, collapsed paths, and dropdown crumbs.
Breadcrumb 1 : Breadcrumb trail centred inside a rounded bordered bar with default chevron separators.Breadcrumb 2 : Breadcrumb with a grid icon on the first link, slash separators and an underlined current page.Breadcrumb 3 : Breadcrumb with an icon before every item, such as home, folder and file, and chevron separators.Breadcrumb 4 : Breadcrumb with dot separators and a softly shaded highlight behind the current page.Breadcrumb 5 : Breadcrumb where each step is an outline badge, joined by arrow separators.Breadcrumb 6 : Badge-style breadcrumb whose last item is a dropdown for switching between sibling pages.Breadcrumb 7 : Breadcrumb with an icon-only home link and a folder icon that opens a menu of hidden sections.Breadcrumb 8 : Compact pill-shaped breadcrumb with a home icon and slash separators.
About React Breadcrumb Components A React breadcrumb is a row of links that shows where the current page sits in the site hierarchy, like Home / Docs / Components. Watermelon UI breadcrumbs are built with Tailwind CSS on semantic nav and ordered-list markup, with separators, an ellipsis for collapsed levels, and asChild links for your router. Add one with the shadcn CLI, then set the links and separator icon.
When to use it Docs sites or knowledge bases with nested sections. E-commerce category and product pages. Admin dashboards where users drill into records and need a way back up. When to use something else Use Tabs when the views are siblings at the same level, not steps in a hierarchy. Use Pagination when users are moving through pages of one list rather than levels of a site. Use Dropdown Menu when you need to list many sibling pages under one trigger. Frequently asked questions How do I use Next.js Link in a shadcn breadcrumb? Pass asChild to BreadcrumbLink and put a Link inside it. The breadcrumb styles move onto your Link, so client-side navigation keeps working.
How do I change the breadcrumb separator? Put any icon or character inside BreadcrumbSeparator as its children. With no children it renders a chevron by default.
How do I collapse long breadcrumbs? Replace the middle items with BreadcrumbEllipsis, optionally inside a dropdown menu that lists the hidden levels. This keeps the first and last levels visible on small screens.
How do I build shadcn breadcrumbs from the current URL? Split the pathname into segments, for example from usePathname in Next.js, and map each one to a BreadcrumbItem whose link points to the path up to that segment. Render the last segment as BreadcrumbPage and put a BreadcrumbSeparator between items inside a keyed Fragment.
How to use React Breadcrumb Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/breadcrumb-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: lucide-react.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .