Base Components
Breadcrumb
Guiding users by displaying their path within an app or website.
Blogs
The Power of Minimalism in Design
Installation
Install the following dependencies:
terminal
npm install @radix-ui/react-slotCreate a breadcrumb.tsx file and paste the following code into it.
/components/ui/breadcrumb.tsx
Update the import paths to match your project setup.
Examples
As Link
Slash Separator
Settings
/
Notifications
/
Email Notifications
API Reference
Breadcrumb.Root
This component is based on the <div> element and supports all of its props. And adds:
| Prop | Type | Default |
|---|---|---|
asChild | boolean |
Breadcrumb.Item
Individual breadcrumb item. This component is based on the <div> element initially and supports all of its props. And adds:
| Prop | Type | Default |
|---|---|---|
active | boolean | |
asChild | boolean |
Breadcrumb.Icon
Icon used within a breadcrumb item. The Breadcrumb.Icon component is polymorphic, allowing you to change the underlying HTML element using the as prop.
| Prop | Type | Default |
|---|---|---|
as | React.ElementType | div |
Breadcrumb.ArrowIcon
Icon used to separate breadcrumb items, usually an arrow. The Breadcrumb.ArrowIcon component is polymorphic, allowing you to change the underlying HTML element using the as prop.
| Prop | Type | Default |
|---|---|---|
as | React.ElementType | div |
© 2024 AlignUI Design System. All rights reserved.
