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
The Break component adds customizable vertical spacing between content blocks. It’s useful for controlling layout and visual rhythm in your document.Insertion
Insert a break using the command menu:- Press
/to open the command menu - Search for “Break”
- Press Enter to insert
Attributes
The height of the spacing in pixels (1-200px)
Node specification
Usage examples
Default break (24px)
Use the command menu to insert a break with the default 24px spacing:Custom spacing
Click on a break to edit its size. You can set any value from 1 to 200 pixels:Input rule
You can also create a break using the input rule syntax:Editing
In edit mode, the break component displays interactive features:- Hover state: A dotted line appears when you hover over the break
- Proximity indicator: The dotted line also appears when your cursor is near the break
- Click to edit: Click anywhere on the break to open a modal where you can adjust the size
- Visual label: Shows the current size (e.g., “Break (24px) - Click to edit”)
- Set a custom size between 1 and 200 pixels
- Preview the current size
- Save or cancel changes
DOM structure
The break component renders as:TypeScript types
Insert function
Programmatically insert a break:insertBreak function:
- Creates a break node with default 24px size
- Replaces the current selection
- Positions the cursor after the break
- Inserts a new paragraph if needed to continue editing
Best practices
- Use consistent spacing sizes throughout your document for visual harmony
- Common spacing values: 24px (default), 32px (medium), 48px (large)
- Avoid very small values (< 12px) or very large values (> 100px) for better readability
- In read-only mode, the break renders as pure spacing with no visual indicators