The Frame component creates a bordered container around content with customizable padding and an optional caption below the frame.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devscribe-team/webeditor/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Frames provide visual separation and emphasis for content sections. They’re particularly useful for:- Highlighting important information or warnings
- Grouping related content together
- Creating visual breaks in documentation
- Adding context with captions
Insertion
Insert a Frame component using the command menu:- Type
/to open the command menu - Search for “frame”
- Select the Frame option
Attributes
Optional caption text displayed below the frame in italic, muted text. Click the caption to edit it.
Controls the internal padding of the frame. Available options:
sm: Small padding (0.5rem / 8px)md: Medium padding (1rem / 16px)lg: Large padding (1.5rem / 24px)xl: Extra large padding (2rem / 32px)
Node specification
Usage examples
Basic frame with caption
Frame with custom padding
Compact frame for inline notes
Diagram with descriptive caption
Editing in the editor
The Frame has special clickable areas:- Border edges: Click any border (top, bottom, left, right) to edit frame settings
- Caption: Click the caption text below the frame to edit it
- Content area: Edit content normally inside the frame
TypeScript types
Styling details
The Frame component applies:- Border using the theme’s border color
- Rounded corners (border-radius: 0.5rem)
- Background using the card background color
- Hover effect on borders when editable (for better discoverability)
- Centered, italic caption in muted text color
Best practices
- Use captions for context: Add captions to diagrams, charts, or complex examples
- Choose appropriate padding: Use smaller padding for inline notes, larger padding for major sections
- Don’t over-nest: Avoid putting frames inside frames - it reduces clarity
- Consider accessibility: Ensure framed content maintains good contrast and readability
Frames automatically adapt to light and dark themes using CSS custom properties from your theme configuration.
Content support
Frames can contain any block-level content:- Paragraphs and headings
- Lists (ordered and unordered)
- Code blocks and code snippets
- Images and diagrams
- Tables
- Other components (except nested frames)