Frame

Add captions and align images and tables.

The Frame is a block-level element that allows you to add a caption and align an inline component within it.

Currently, it is specifically tailored for aligning and captioning images and tables. Frames are rendered as figure elements in HTML, with a figcaption included if a caption is provided.

Image example

Frame example
<Frame align="center">
   <Image width={300} src="/img/demo-image-01.png" alt="Abstract art"/>
   <Caption>Center aligned image</Caption>
</Frame>
Abstract art
Center aligned image

Table example

A stretched table with a caption
<Frame align="stretch">

| Rocket               | Height   | Payload to LEO | Stages |
|:---------------------|:--------:|:--------------:|:------:|
| SpaceX Starship      | 120 m    | 150 t          | 2      |
| NASA SLS Block 1     | 98 m     | 95 t           | 2      |
| Blue Origin New Glenn| 98 m     | 45 t           | 2      |

<Caption>Stretched table</Caption>
</Frame>
RocketHeightPayload to LEOStages
SpaceX Starship120 m150 t2
NASA SLS Block 198 m95 t2
Blue Origin New Glenn98 m45 t2
Stretched table