#464

feat(react-email): className on Image/Section/Column and linked Image via href

Openharold18mwants to merge intofrom

Closes #461

Two gaps that forced custom overrides when building real emails:

Changes

  • className on Image, Section and Column, so a <style> media query can target them (stack columns, full-width images on mobile).
  • href on Image: when set, the image is wrapped in <Link>. Covers clickable logos and banners, which Link can't express since it only renders props.text.

New props are .nullish(), so existing specs and LLM output without them stay valid.

Tests

  • 3 new tests: classes reach the HTML, href wraps the image in <a>, a plain Image is unchanged. The first two fail without the change.
  • packages/react-email: 36/36 pass, tsc --noEmit clean.

🤖 Generated with Claude Code

Activity

4
copilot-pull-request-reviewer[bot]reviewed5d ago
copilot-pull-request-reviewer[bot]5d ago

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

vercel[bot]5d ago

@harold18m is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot]5d ago

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated
json-render-chat-sdk-demo Errorv0Nov 7, 2026 9:26pm UTC