Breadcrumbs

Breadcrumbs are a navigation tool that displays a sequence of links representing the hierarchical path to the current page or resource within an application. This allows clear visibility of the page's position in the overall structure.

Example

Usage

Features

Breadcrumbs provide a list of links to parent pages of the current page in hierarchical order. Breadcrumbs helps implement these in an accessible way.

  • Flexible – Support for HTML navigation links, JavaScript handled links, and client side routing.
  • Accessible – Implemented as an ordered list of links. The last link is automatically marked as the current page using aria-current.
  • Styleable – Hover, press, and keyboard focus states are provided for easy styling. These states only apply when interacting with an appropriate input device, unlike CSS pseudo classes.

Installation

Install following dependencies:

npm install react-aria-components tw-animate-css tailwindcss-react-aria-components class-variance-authority lucide-react clsx tailwind-merge motion

Add cn helper using clsx and twMerge for conditional class merging in Tailwind components.

lib/utils.ts

Copy and paste the following code into your project.

components/ui/core/breadcrumbs.tsx
npx libravelui@latest add breadcrumbs

Anatomy

import { Breadcrumb, BreadcrumbItem } from "@/components/ui/core/breadcrumbs";
<Breadcrumb>
  <BreadcrumbItem href="/">Home</BreadcrumbItem>
  <BreadcrumbItem href="/movies">Movies</BreadcrumbItem>
  <BreadcrumbItem href="/movies/tt0407887">The Departed</BreadcrumbItem>
</Breadcrumb>

Another Examples

With Icon

Breadcrumbs with icons for each item, providing visual context and enhancing navigation clarity.

Usage

Custom Separator

Breadcrumbs using a custom separator to replace the default arrow, allowing for more personalized styling.

Usage

Props

Loading types…

Accessible React component library to copy, customize, and own your UI. Built for Next.js, Vite, and Laravel.

Crafted by dervyon. Peep the Source Code on GitHub.

Hosted on Vercel. The source code's got the MIT license.

2025 - 2026 · LibravelUI

Starter Kits

Templates

    Coming Soon

Labs