#464
feat(react-email): className on Image/Section/Column and linked Image via href
Closes #461
Two gaps that forced custom overrides when building real emails:
Changes
classNameonImage,SectionandColumn, so a<style>media query can target them (stack columns, full-width images on mobile).hrefonImage: when set, the image is wrapped in<Link>. Covers clickable logos and banners, whichLinkcan't express since it only rendersprops.text.
New props are .nullish(), so existing specs and LLM output without them stay valid.
Tests
- 3 new tests: classes reach the HTML,
hrefwraps the image in<a>, a plainImageis unchanged. The first two fail without the change. packages/react-email: 36/36 pass,tsc --noEmitclean.
🤖 Generated with Claude Code
Activity
4copilot-pull-request-reviewer[bot]reviewed5d 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.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated |
|---|---|---|---|
| json-render-chat-sdk-demo | Error | v0 | Nov 7, 2026 9:26pm UTC |
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.