Installation
Usage
Add the component to your email template. Include styles where needed.Props
TheBody component accepts all standard HTML attributes for the <body> element.
The content of the email body
Inline styles for the body element. Margin properties are automatically handled to prevent layout issues across email clients
Implementation Details
TheBody component wraps your content in a table structure to ensure consistent rendering across email clients, particularly Yahoo and AOL which remove body element styles.
Margin properties are automatically reset if set by the user to prevent margin summing issues with email client default styles.
TypeScript
Email Client Support
This component was tested using the most popular email clients.| Gmail | Apple Mail | Outlook | Yahoo! Mail | HEY | Superhuman |
|---|---|---|---|---|---|
| ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |