Skip to content

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

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>

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>

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>

To prepend an icon use the start slot.

<ch-breadcrumb-item>
breadcrumb item
<ch-icon slot="start" name="person"></ch-icon>
</ch-breadcrumb-item>

To append an icon use the end slot.

<ch-breadcrumb-item>
breadcrumb item
<ch-icon slot="end" name="dismiss"></ch-icon>
</ch-breadcrumb-item>

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>

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>