{% 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 |
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.
<svg>
HTML element, be sure to minifiy the SVG, add the element class class="e-bolt-icon"
, and add the attribute aria-hidden="true"
.