{% include '@bolt-components-chip/chip.twig' with {
content: 'This is a chip component.'
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to chip. |
object
| — |
|
content
*
|
The main chip content. |
any
| — |
|
size
|
Controls the size of the chip. |
string
|
small
|
|
border_radius
|
Controls the border radius of the chip. |
string
|
full
|
|
icon_before
|
Append an icon before the chip content. Icon element is recommended. However, <img> elements are also acceptable. |
any
| — |
|
icon_after
|
Append an icon after the chip content. Icon element is recommended. However, <img> elements are also acceptable. |
any
| — |
|
icon_only
|
Append an icon to the chip content and visually hide the text content. This prop trumps icon_before and icon_after. |
any
| — |
|
npm install @bolt/components-chip