Breadcrumbs
A navigation component that displays the current page location within the site hierarchy with hand-drawn sketch aesthetic.
Breadcrumbs
Breadcrumbs provide a navigation trail for users to understand their current location within the site hierarchy. The component features Faiz UI's signature hand-drawn sketch aesthetic while maintaining full accessibility and functionality.
Usage
Sizes
Breadcrumbs come in three sizes to match different design needs.
Small
Medium
Large
Colors
Choose from various color options to match your design theme.
Primary
Secondary
Success
Warning
Danger
Info
Variants
Different visual styles for breadcrumbs.
Solid
Light
Bordered
Custom Separators
Customize the separator character between breadcrumb items.
Default (/)
Greater Than (>)
Arrow (→)
Bullet (•)
Underline
Control when breadcrumb items show underlines.
None
On Hover
Always
Active Only
With Icons
Add icons to breadcrumb items for better visual context.
Disabled Items
Disable specific breadcrumb items to prevent navigation.
Implementation Notes
- The last breadcrumb item is automatically marked as the current page with
aria-current="page" - The component uses semantic HTML with
<nav>and ordered lists for better accessibility - Disabled items prevent both click events and navigation
- The current item (last item) is styled differently and doesn't have hover effects
- Custom separators can be any React node, not just text characters
Props
Breadcrumbs Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | "lg" | "md" | The size of the breadcrumbs |
color | "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "primary" | The color theme of the breadcrumbs |
variant | "solid" | "light" | "bordered" | "solid" | The visual style variant |
underline | "none" | "hover" | "always" | "active" | "none" | When to show underlines on items |
separator | ReactNode | "/" | The separator between breadcrumb items |
customStyles | object | - | Custom CSS classes for styling slots |
className | string | - | Additional CSS classes |
BreadcrumbItem Props
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | - | The URL to navigate to when clicked |
isCurrent | boolean | false | Whether this is the current/active breadcrumb (automatically set for the last item) |
isDisabled | boolean | false | Whether the breadcrumb item is disabled |
onClick | (e: React.MouseEvent) => void | - | Custom click handler |
as | React.ElementType | "a" or "span" | The HTML element to render as |
className | string | - | Additional CSS classes |