Teaser
Getting Started
Teaser block. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-teaser
Usage
{% 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 %}
Schema
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
eyebrow | object
|
|
Eyebrow text component |
N/A |
headlines | array
|
|
An array of headline component objects |
N/A |
logo | object
|
|
Bolt logo component |
N/A |
content | string
| |
Body text of teaser |
N/A |
contentItems | array
|
|
Array of content item objects |
N/A |
buttons | array
|
|
An array of button component objects |
N/A |