> For the complete documentation index, see [llms.txt](https://docs.trydrupal.com/radix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trydrupal.com/radix/components/figure.md).

# Figure

### Usage

```twig
{% embed 'radix:figure' with {
  figure_utility_classes: ['my-3'],
  align: 'center',
  caption: 'A caption describing the context of the image.',
  attributes: attributes.setAttribute('class', ['additional-attributes'])
} %}
  {% block image %}
    <img src="path/to/image.jpg" alt="Descriptive text for the image" class="img-fluid">
  {% endblock %}
{% endembed %}
```
