Components

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#

Docs layout preview

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:

A preview limited to 320 pixels wide

Markdown captions#

Caption strings support Markdown links, bold, italic, and inline code.

Sample: Learn more in the images guide.

Hints#

Use hint to display text before the frame. You can combine it with a caption.

Use a high-resolution source image.
Docs layout preview

Autoplay videos#

Videos with autoPlay automatically receive playsInline, loop, and muted attributes. Videos without autoPlay are left unchanged.

With code or other children#

Environment variables in .env

Properties#

NameTypeDescription
captionReactNode

Optional centered caption below the framed content. String values support inline Markdown.

hintReactNode

Optional text displayed before the frame. String values support inline Markdown.

childrenReactNode

Media or other content to frame.

Last updated on
Edit this page