Frame
Styled borders, hints, and captions for screenshots or other media.
Use Frame to visually contain media or custom content with optional hints and
captions.
Basic usage#
Image sizing#
Images are centered at their natural size, or at the dimensions specified on the image. They scale down to fit narrower screens without stretching to fill the frame. Multiple images stack vertically with space between them.
Use width to display an image smaller than its source:
Markdown captions#
Caption strings support Markdown links, bold, italic, and inline code.
Hints#
Use hint to display text before the frame. You can combine it with a caption.
Autoplay videos#
Videos with autoPlay automatically receive playsInline, loop, and muted
attributes. Videos without autoPlay are left unchanged.
With code or other children#
VITE_API_URL=https://api.example.com.envProperties#
| Name | Type | Description |
|---|---|---|
| caption | ReactNode | Optional centered caption below the framed content. String values support inline Markdown. |
| hint | ReactNode | Optional text displayed before the frame. String values support inline Markdown. |
| children | ReactNode | Media or other content to frame. |