---
title: "Frame"
subtitle: "<Frame> (alias <Figure>) adds a border and caption to images, videos or embeds."
---

For more on image paths, sizing, and asset copying, see [Images and media](../writing/media.mdx).

Adds a border and caption to an image, video, or embed (alias `<Figure>`):

```mdx
<Frame caption="The ButterIX build pipeline" hint="Click the image to zoom">
  ![Build pipeline](/assets/pipeline.svg)
</Frame>
```

<Frame caption="The ButterIX build pipeline" hint="Click the image to zoom">
  ![Build pipeline](/assets/pipeline.svg)
</Frame>

<ParamField path="caption" type="string">Caption below the media.</ParamField>
<ParamField path="background" type="default | subtle" default="default">`subtle` uses a soft background color.</ParamField>
<ParamField path="hint" type="string">Hint above the frame.</ParamField>
