2.12.1
Teaser Component
Teaser block. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
npm install @bolt/components-teaser
{% include "@bolt-components-teaser/teaser.twig" with {
content: "Body text. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin vel ante a orci tempus eleifend ut et magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
buttons: [
{
pattern: "button",
style: "primary",
text: "CTA 1"
},
{
pattern: "button",
style: "secondary",
text: "CTA 2"
}
]
} only %}
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
Eyebrow text component |
object
| — |
|
|
An array of headline component objects |
array
| — |
|
|
Bolt logo component |
object
| — |
|
|
Body text of teaser |
string
| — |
|
|
Array of content item objects |
array
| — |
|
|
An array of button component objects |
array
| — |
|