{% include '@bolt-elements-icon/icon.twig' with {
name: 'bell-solid',
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
name
|
Name of Icon. Please note that currently Twitter, after rebranding, from July 2023 operating under the name X |
string
| — |
|
custom_icon_path
|
Full source path to the custom icon. |
string
| — |
|
size
|
Set icon size. If size is not set, the icon size will default to text size. |
string
| — |
|
color
|
Set the icon color. If color is not set, the icon will default to text color. |
string
| — |
|
npm install @bolt/elements-icon
<svg class="e-bolt-icon">
is acceptable at rendering an icon, though the Twig template is the recommended usage for Drupal.