Breadcrumb Item beta
A breadcrumb item is an element within a breadcrumb component to help represent a specific page or category within a website or a web application. Breadcrumb items are used inside the breadcrumb component to represent different links.
This is a subcomponent of Breadcrumb
Adding a breadcrumb item label
Section titled “Adding a breadcrumb item label”To add a label to the breadcrumb item you can place any element within the opening and closing tag of the <ch-breadcrumb-item> element.
<ch-breadcrumb-item>breadcrumb item</ch-breadcrumb-item>Rendering an active breadcrumb item link
Section titled “Rendering an active breadcrumb item link”By default breadcrumb item renders an inactive anchor. To render a link, set an href attribute within the <ch-breadcrumb-item> element.
<ch-breadcrumb-item href="#">breadcrumb item</ch-breadcrumb-item>Custom separator
Section titled “Custom separator”By default the slot is a >. To customize the separator use the separator slot.
<ch-breadcrumb-item> breadcrumb item <span slot="separator">/</span></ch-breadcrumb-item>Setting a start icon
Section titled “Setting a start icon”To prepend an icon use the start slot.
<ch-breadcrumb-item> breadcrumb item <ch-icon slot="start" name="person"></ch-icon></ch-breadcrumb-item>Setting an end icon
Section titled “Setting an end icon”To append an icon use the end slot.
<ch-breadcrumb-item> breadcrumb item <ch-icon slot="end" name="dismiss"></ch-icon></ch-breadcrumb-item>Setting a target
Section titled “Setting a target”To tell the browser where to open the link, use the target attribute within the <ch-breadcrumb-item> element. This is only used when an href is set.
Target types are blank | parent | self | top.
<ch-breadcrumb-item target="'_top'>">breadcrumb item</ch-breadcrumb-item>Setting referrer policy property
Section titled “Setting referrer policy property”To defining which referrer is sent when fetching the resource, use the referrerpolicy attribute within the <ch-breadcrumb-item> element.
referrer policy types are no-referrer | no-referrer-when-downgrade | origin | origin-when-cross-origin | same-origin | strict-origin | strict-origin-when-cross-origin | unsafe-url
<ch-breadcrumb-item referrerpolicy="no-referrer">breadcrumb item</ch-breadcrumb-item>