Breadcrumb
Displays the path to the current resource using a hierarchy of links. Based on BrConfigProvider for global theming, supporting responsive folding and custom separators.
Component Features
- 🔗 Routing Support: Supports
BrLinkfor routing links and plain anchor elements. - ➡️ Custom Separators: Supports custom separator content and component overrides.
- 📱 Responsive Folding: Supports ellipsis folding on small screens.
- 🚫 Disabled State: Supports
disabledprop for non-clickable items. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic Usage
The most basic breadcrumb navigation.
Custom Separator
You can customize separators globally via props or locally using the default slot of BrBreadcrumbSeparator.
Responsive Folding & Dropdown
When breadcrumbs get too long, use BrBreadcrumbEllipsis along with a dropdown menu (like DropdownMenu or a custom implementation) to fold items. This example shows a basic visual folding effect.
Disabled Items & States
Control the state of a breadcrumb item via the state prop. Options include active (current page) and disabled (unclickable).
Theming
Breadcrumbs deeply integrate with BrConfigProvider. You can customize theming by supplying different color variables, or override styles directly with TailwindCSS classes.