Skip to content

Breadcrumbs Item

Breadcrumb items are intended for use with the six-breadcrumbs component. For usage details, see the six-breadcrumbs documentation.

ABC
html
<six-breadcrumbs>
  <six-breadcrumbs-item>A</six-breadcrumbs-item>
  <six-breadcrumbs-item>B</six-breadcrumbs-item>
  <six-breadcrumbs-item>C</six-breadcrumbs-item>
</six-breadcrumbs>

Overview

Breadcrumb items are used inside breadcrumbs to represent different links.

Properties

PropertyAttributeDescriptionTypeDefault
hrefhrefWhen set, the underlying button will be rendered as an <a> with this href instead of a <button>.string | undefinedundefined
readonlyread-onlySet to true to readonly the breadcrumb item.booleanfalse
sizesizeThe breadcrumbs item size."large" | "medium" | "small"'medium'
targettargetTells the browser where to open the link. Only used when href is set."_blank" | "_parent" | "_self" | "_top" | undefinedundefined

Slots

SlotDescription
The breadcrumb item’s label.
"prefix"An optional prefix, usually an icon or icon button.
"separator"The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on six-breadcrumbs instead.
"suffix"An optional suffix, usually an icon or icon button.

Shadow Parts

PartDescription
"base"The component's base wrapper.
"button"The button that renders the item
"separator"The separator

CSS Custom Properties

NameDescription
--last-item-colorThe color of the last breadcrumbs item
--separator-colorThe color of the separator

Dependencies

Depends on

Graph


Copyright © 2021-present SIX-Group