Overview
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
Schema
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) |
---|---|---|---|---|
|
Renderable text content of the headline. |
string or object or array |
— |
|
|
Html tag. |
string
|
p
|
|
|
Text alignment. |
string
| — |
|
|
Font weights. |
string
|
regular
|
|
|
Font styles. |
string
|
normal
|
|
|
Font size. |
string
|
medium
|
|
|
Text transformation. |
string
| — |
|
|
If provided, turns headline into a link to given url. |
string
| — |
|
|
Bolt icon. Accepts either 1) an icon name as a string 2) an icon object as expected by |
object or string or string |
— |
|
|
Adds quoted styling to text. |
boolean
| — |
|