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#

Sample
Docs layout preview

Markdown captions#

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

Sample
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.
Sample
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