Headline
Getting Started
Headlines are specific combinations of typographic styles for display text. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-headline
Usage
{% include "@bolt-components-headline/headline.twig" with {
text: "This is a headline",
} only %}
{% include "@bolt-components-headline/eyebrow.twig" with {
text: "This is an eyebrow",
} only %}
{% include "@bolt-components-headline/subheadline.twig" with {
text: "This is a subheadline",
} only %}
{% include "@bolt-components-headline/text.twig" with {
text: "This is text",
} only %}
{% include "@bolt-components-headline/lead.twig" with {
text: "This is a lead",
} only %}
Schema
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
text* |
string OR object OR array |
|
Renderable text content of the headline. |
N/A |
tag | string
|
|
Html tag. |
p
|
align | string
|
|
Text alignment. |
N/A |
weight | string
|
|
Font weights. |
regular
|
style | string
|
|
Font styles. |
normal
|
size | string
|
|
Font size. |
medium
|
transform | string
|
|
Text transformation. |
N/A |
url | string
| |
If provided, turns headline into a link to given url. |
N/A |
icon |
object OR string OR string |
|
Bolt icon. Accepts either 1) an icon name as a string 2) an icon object as expected by |
N/A |
quoted | boolean
| |
Adds quoted styling to text. |
N/A |