feat(editor): add inspector examples for defaults, composed, and custom usage#3190
Merged
feat(editor): add inspector examples for defaults, composed, and custom usage#3190
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Contributor
|
This review could not be run because your cubic account has exceeded the monthly review limit. If you need help restoring access, please contact contact@cubic.dev. |
commit: |
eda3861 to
864665c
Compare
c2e39ec to
a3c3081
Compare
gabrielmfern
approved these changes
Apr 7, 2026
a3c3081 to
05e17d5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the single
document-inspectorexample with three focused examples showcasing the full inspector API:<Inspector.Document />,<Inspector.Node />,<Inspector.Text />with no childrenInspector.Background,Inspector.Padding, etc.) with custom UI. Conditional sections per node type.Context
Part of the inspector sidebar redesign (PRODUCT-1739). Stacked on top of #3189 (Document defaults + validation).
Test plan
pnpm lint:fixpasses@react-email/editor/*)document-inspector.tsxremoved, index updated with three new entriesSummary by cubic
Replaces the single inspector example with three focused examples and adds an inspector sidebar to the Full Email Builder. Ships inspector styles via the default theme and fixes the builder layout using a shared
EditorContext.Provider(PRODUCT-1739).New Features
Inspector.Document,Inspector.Node,Inspector.Text.Inspector.Background,Inspector.Padding,Inspector.Size,Inspector.Border) and add custom UI per node type.Inspector.Document,Inspector.Node,Inspector.Text.document-inspector.tsxwith three new examples and updated the examples index.Bug Fixes
@react-email/editor/styles/inspector.cssand included it in@react-email/editor/themes/default.css.EditorContext.Providerso menus and sidebar stay in sync.Written for commit 05e17d5. Summary will update on new commits.