Skip to content

Breadcrumbs - Web Component

...

Browser support

Parameters

The Web component uses a <z-breadcrumbs> tag.

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

NameTypeDescription
configstringCustom attribute for the breadcrumbs component
crumbsObject[]The links in the breadcrumbs
homebooleanWhether to show the home icon for the first link in the breadcrumbs

Playground

Customization

HTML Examples

Imports
html
<link rel="stylesheet" href="/0.3.7/@zurich/web-components/styles.css" />
<script type="module" src="/0.3.7/@zurich/web-components/breadcrumbs.js"></script>
Code
html
<z-breadcrumbs
  crumbs='[{ "text": "Link 1", "to": "#" },{ "text": "Link 2", "to": "#" },{ "text": "Link 3", "to": "#" }]'>
</z-breadcrumbs>