{% 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 %}
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