Files
Ricardo Nunez 40d2e2cd2d Add proper language support for syntax highlighting to all code blocks (#807)
* Add proper language support for syntax highlighting to all code blocks

* Camel case inline code
2025-06-11 12:38:15 -07:00

42 lines
869 B
Plaintext

---
title: "Frames"
description: "Use the Frame component to wrap images or other components in a container."
icon: 'frame'
---
Frames are very helpful if you want to center an image.
<Frame>
<img src="https://mintlify-assets.b-cdn.net/yellowstone.jpeg" />
</Frame>
## Captions
You can add additional context to an image using the optional `caption` prop.
<Frame caption="Yosemite National Park is visited by over 3.5 million people every year">
<img src="https://mintlify-assets.b-cdn.net/yosemite.jpg" />
</Frame>
## Props
<ResponseField name="caption" type="string">
Optional caption text to show centered under your component.
</ResponseField>
<RequestExample>
```mdx Frame
<Frame>
<img src="/path/image.jpg" />
</Frame>
```
```mdx Frame with Captions
<Frame caption="Caption Text">
<img src="/path/image.jpg" />
</Frame>
```
</RequestExample>