{% set item_home %}
{% include '@bolt-elements-text-link/text-link.twig' with {
content: 'Home',
attributes: {
href: '#!'
}
} only %}
{% endset %}
{% set item_landing %}
{% include '@bolt-elements-text-link/text-link.twig' with {
content: 'Landing Page',
attributes: {
href: '#!'
}
} only %}
{% endset %}
{% set item_sub %}
{% include '@bolt-elements-text-link/text-link.twig' with {
content: 'Sub Page',
attributes: {
href: '#!'
}
} only %}
{% endset %}
{% set item_current %}
{% include '@bolt-elements-text-link/text-link.twig' with {
content: 'Current Page',
attributes: {
href: '#!',
'aria-current': 'page',
}
} only %}
{% endset %}
{% include '@bolt-components-breadcrumb/breadcrumb.twig' with {
items: [
item_home,
item_landing,
item_sub,
item_current,
]
} only %}
kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
items
|
Breadcrumb pieces. |
array
| — |
|
contentItems
(deprecated) |
Use items instead. |
— | — |
|
npm install @bolt/components-breadcrumb
aria-current
attribute must be applied to the last link in the set to indicate that it represents the current page.
The above example shows a xsmall band containing the breadcrumbs.
The above example shows a small band containing the breadcrumbs and large band containing the content. Both have theme set to none.
There is an outer band containing the breadcrumb band and the featured band, background and theme should be set on that outer band.
The above example shows a small band containing the breadcrumbs and large band containing the content. Both have theme set to none.
A background image is set on the outer band and the theme is set to dark.
The above example shows a xsmall band containing the breadcrumbs and large band containing the content.
No background or theme is set on the outer band in this case because it's not neccessary.