{% include "@bolt-components-breadcrumb/breadcrumb.twig" with {
contentItems: [
include("@bolt-components-link/link.twig", {
text: "Home",
url: "#!"
}),
include("@bolt-components-link/link.twig", {
text: "Landing Page",
url: "#!"
}),
include("@bolt-components-link/link.twig", {
text: "Sub Page",
url: "#!"
}),
include("@bolt-components-link/link.twig", {
text: "Current Page",
url: "#!",
attributes: {
"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