Skip to content

Breadcrumb

A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy.

Basic Usage

Basic usage of breadcrumb.

Home
Channel
News

Custom Separator

Customize the delimiter through the separator attribute or slot. Bread crumb child items can also be customized through the separator attribute or slot delimiter, and the priority is higher than the parent item.

Home
Channel
News

Home
Channel
News

Custom Size

Customize the breadcrumb size by specifying the style.

Home
Channel
News

Home
Channel
News

Custom Icon

You can use custom icons in the content.

Routes

Transfer breadcrumb data through routes. If you want to customize bread crumbs, it is recommended to use the a-breadcrumb-item component. the path is bound with the href attribute of the a tag by default, you can customize the rendering through the item slot.

Use droplist or routes settings dropdown menu


Home
Channel
News

Ellipsis

Use max-count to specify the maximum number of breadcrumbs to render, and the excess will be displayed as an ellipsis.

Home
Post

Home
Post
NameDescriptionTypeDefault
max-countMaximum number of breadcrumbs displayed (0 means no limit)Number0
routesSetting routesArray-
separatorSeparator textStringNumber-
custom-urlCustom link addressFunction-
NameDescription
more-iconCustom more icon
item-renderEffective when setting routes, custom render breadcrumbs
separatorCustom separator
NameDescriptionTypeDefault
separatorSeparator textStringNumber-
droplistDropdown contentObject-
dropdown-propsDropdown propsObject-
NameDescription
droplistCustom droplist
separatorCustom separator
NameDescriptionTypeDefault
labelBreadcrumb nameString-
pathJump path (a tag href value)String-
childrenDropdown menu itemsArray-