Skip to content

Breadcrumbs - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

The Web component uses the <z-breadcrumbs> tag:

By default, all the parameters are optional or can be set in different, except for the ones marked as required

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescriptionSlot
crumbsObject[]The links in the breadcrumbs
homebooleanWhether to show the home icon for the first link in the breadcrumbs

The available slots for the component are:

NameTagsDescription
linksz-linkThe links in the breadcrumbs

crumbs

The crumbs parameter is an array of objects with the following properties:

  • text: The text to be displayed for the crumb.
  • to: the URL to navigate to when the crumb is clicked.

We can use <z-link> tags to define the values of crumbs

HomeMoleculesBreadcrumbs

home

The home parameter is a boolean that determines if the first crumb should be replaced with a home icon.

HomeMoleculesBreadcrumbs

Playground

Customization

HTML Examples

StackBlitz example