Breadcrumb Component

Breadcrumb is a navigation aid that allows users to understand the current page's position within the website structure and quickly return to parent pages.
Basic Usage
Basic breadcrumb usage, displaying hierarchical structure.
Custom Separator
You can customize the separator icon by setting the separatedIcon attribute. If not set, the default / symbol is used.
Breadcrumb with Icons
Add icons to each breadcrumb item by setting the icon attribute in options.
Router Navigation
Set the isRouter attribute to enable router navigation functionality, used together with the to attribute in options.
Current clicked route: Not clicked
Note: Actual navigation is disabled in documentation
Disabled State
Set the disabled attribute in options to disable specific breadcrumb items.
Custom Gap
You can customize the gap between separator and content by setting the gap attribute.
Breadcrumb API
Attributes
| Attribute | Description | Type | Accepted Values | Default |
|---|---|---|---|---|
| options | Breadcrumb option data | array | — | [] |
| is-router | Whether to enable router | boolean | — | true |
| is-replace | Whether to use replace mode | boolean | — | false |
| separated-icon | Separator icon | string | — | — |
| gap | Separator gap | number | — | 6 |
Option Configuration
| Parameter | Description | Type | Accepted Values | Default |
|---|---|---|---|---|
| label | Display text | string | — | — |
| value | Unique identifier | string | — | — |
| icon | Icon type | string | — | — |
| to | Router path | RouteRecordRaw | — | — |
| disabled | Whether disabled | boolean | — | false |
Events
| Event Name | Description | Parameters |
|---|---|---|
| change | Triggered when breadcrumb item is clicked | (item: ValueType) |
Style Variables
The breadcrumb component uses the following style variables, which can be customized through SCSS variables:
| Variable Name | Description |
|---|---|
| $theme-color-primary | Theme color - Primary |
| $text-color-default | Default text color |
| $font-size-default | Default font size |
| $opacity-disabled | Disabled state opacity |
Tune UI