2.11.0
Icon component in Bolt
Icon. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
npm install @bolt/components-icon
{% include "@bolt-components-icon/icon.twig" with {
name: "add-open",
background: "circle",
size: "medium",
} 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) |
---|---|---|---|---|
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
|
Icon name. |
string
| — |
|
|
Background shape. This applies only to 'xlarge' icons. |
string
| — |
|
|
Icon size. |
string
| — |
|
|
Icon color. Currently only support default (black) and teal. |
string
| — |
|