{% include "@bolt-components-breadcrumb/breadcrumb.twig" with {
contentItems: [
include('@bolt-elements-text-link/text-link.twig', {
content: 'Home',
attributes: {
href: '#!'
}
}),
include('@bolt-elements-text-link/text-link.twig', {
content: 'Landing Page',
attributes: {
href: '#!'
}
}),
include('@bolt-elements-text-link/text-link.twig', {
content: 'Sub Page',
attributes: {
href: '#!'
}
}),
include('@bolt-elements-text-link/text-link.twig', {
content: 'Current Page',
attributes: {
href: '#!'
'aria-current': 'page',
}
}),
]
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
contentItems
|
Breadcrumb pieces. |
array
| — |
|
npm install @bolt/components-breadcrumb