Installation
Usage
Add the component to your email template. Include styles where needed.Props
TheText component accepts all standard HTML paragraph (<p>) element attributes.
The text content to display
Inline styles for the text. Default styles provide sensible margins and typography
Default Styles
TheText component includes these default styles:
fontSize: 14px- Base font sizelineHeight: 24px- Line height for readabilitymarginTop: 16px- Top margin (can be overridden)marginBottom: 16px- Bottom margin (can be overridden)
Styling Example
TypeScript
Email Client Support
This component was tested using the most popular email clients.| Gmail | Apple Mail | Outlook | Yahoo! Mail | HEY | Superhuman |
|---|---|---|---|---|---|
| ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |