Breadcrumb
Displays a hierarchy of links to the current page or resource in an application.
Installation
Install ReUI
Refer to the Installation Guide for detailed instructions on setting up ReUI dependencies in your project.
Install dependencies
npm install @radix-ui/react-slot
Add component
Copy and paste the following code into your project’s components/ui/breadcrumb.tsx
file.
Examples
Default
Icon
Separator
Dropdown
Card
API Reference
This component provides a customizable breadcrumb system for displaying a hierarchy of links.
Breadcrumb
This component is a flexible container for displaying breadcrumb items.
Prop | Type | Default |
---|---|---|
className | ||
separator | <ChevronRight/> |
BreadcrumbList
This component is used to display a list of breadcrumb items.
Prop | Type | Default |
---|---|---|
className |
BreadcrumbItem
This component is used to display an individual breadcrumb item.
Prop | Type | Default |
---|---|---|
className |
BreadcrumbLink
This component is used to display a link within a breadcrumb item.
Prop | Type | Default |
---|---|---|
className | ||
href | ||
asChild | false |
BreadcrumbPage
This component is used to display the current page in the breadcrumb.
Prop | Type | Default |
---|---|---|
className |
BreadcrumbSeparator
This component is used to display a separator between breadcrumb items.
Prop | Type | Default |
---|---|---|
className |
BreadcrumbEllipsis
This component is used to display an ellipsis in the breadcrumb.
Prop | Type | Default |
---|---|---|
className |