Skip to content

feat(react-email): render PreviewProps during export#3410

Open
itsyoboieltr wants to merge 4 commits intoresend:canaryfrom
itsyoboieltr:fix/export-preview-props
Open

feat(react-email): render PreviewProps during export#3410
itsyoboieltr wants to merge 4 commits intoresend:canaryfrom
itsyoboieltr:fix/export-preview-props

Conversation

@itsyoboieltr
Copy link
Copy Markdown

@itsyoboieltr itsyoboieltr commented Apr 21, 2026

Summary by cubic

Render exported emails with component PreviewProps so exported HTML matches the preview and no longer shows empty or “undefined” fields.

  • Bug Fixes
    • Added getPreviewProps to safely read static PreviewProps (falls back to {} if invalid).
    • Passed previewProps into reactEmailCreateReactElement during export so preview values are applied.
    • Extended tests to cover rendering and fallback; added a changeset for a minor react-email release.

Written for commit e8c30cf. Summary will update on new commits.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 21, 2026

@itsyoboieltr is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 21, 2026

🦋 Changeset detected

Latest commit: e8c30cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
react-email Minor
@react-email/editor Patch
@react-email/ui Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/react-email@3410

commit: e8c30cf

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@itsyoboieltr itsyoboieltr changed the title feat(react-email): Render PreviewProps during export feat(react-email): render PreviewProps during export Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant