Figure
Getting Started
Figure for displaying graphics or tabular content. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-figure
Usage
{% include "@bolt-components-figure/figure.twig" with {
image: {
src: "/pattern-lab/images/placeholders/500x500.jpg",
lazyload: false
},
caption: "The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low, and achieving our mark."
} only %}
Schema
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
attributes | object
| |
A Drupal-style attributes object with extra attributes to append to this component. |
N/A |
image | object
|
|
A bolt image object. |
N/A |
caption |
string OR object OR array |
|
A renderable figure caption. |
N/A |
icon | object
|
|
A bolt icon object. |
N/A |
content |
string OR object OR array |
|
A catch-all for renderable content (e.g. a string, render array, or included pattern object) to place in the figure. |
N/A |