Inspector.Root must be rendered inside the current editor context, and it
requires the EmailTheming extension to be present in the editor.
Core components
Inspector.Root
Wraps your inspector UI and decides which panel should be active based on the current selection.Render without the default
aside wrapper and pass props to the child via
Radix UI’s Slot.aside are also supported if asChild is false.
Inspector.Document
Meant for inspecting and changing things related to the entire editor’s content. That is, EmailTheming, page-level settings, and other document-wide concerns. It shows up when the editor is not focused on a specific node or text selection, or when the editor is unfocused.Optional render prop. When provided, you receive the document inspector
context instead of the default UI.
InspectorDocumentContext
Theme-backed document style groups after merging defaults.
Updates a single document-level style.
Applies multiple document style changes at once.
Reads the current or default value for a document style.
Inspector.Node
Renders when a node is focused or selected. Withoutchildren, it shows the
default node-specific sections for the active node type.
Optional render prop. When provided, you receive the node inspector context
instead of the default UI.
InspectorNodeContext
Active node type, such as
image, button, or section.ProseMirror position information for the focused node.
Reads a resolved style value for the node.
Updates one inline style on the focused node.
Applies multiple inline style updates in one call.
Reads a node attribute.
Updates a node attribute.
Resolved theme defaults for the current node.
Colors collected from the current document.
Inspector.Text
Renders when text is selected. Withoutchildren, it shows typography controls
and link controls when a link mark is active.
Optional render prop. When provided, you receive the text inspector context
instead of the default UI.
InspectorTextContext
Active text marks like
bold, italic, and underline.Toggles a text mark on the current selection.
Current block alignment.
Updates the parent block alignment.
Current link URL when a link mark is active.
Resolved link color.
Updates the active link color.
Whether the current text selection is inside a link.
Reads the resolved parent block style.
Updates the parent block style.
Colors collected from the current document.
Inspector.Breadcrumb
Renders the current path from the document root to the focused node.Optional render prop for completely custom breadcrumb rendering.
The node for this breadcrumb segment.
null represents the root layout item.Focuses the corresponding node or the document root.
Built-in sections
Use these inside customInspector.Node or Inspector.Text render functions to
reuse the default section UIs in your own layout.
initialCollapsed?: boolean prop.
| Component | Context | Description |
|---|---|---|
Inspector.Attributes | Node | Editable attribute fields based on the local attribute schema |
Inspector.Background | Node | Background color editor |
Inspector.Border | Node | Border width, color, style, and radius controls |
Inspector.Link | Text | Read-only URL plus link color controls for active links |
Inspector.Padding | Node | Four-sided padding editor |
Inspector.Size | Node | Width and height controls |
Inspector.Typography | Node or Text | Typography, formatting, and alignment controls |