Installation
Usage
Add the component to your email template. Include styles where needed.Props
The preview text content. Maximum length is 150 characters
Additional inline styles for the preview container
How It Works
ThePreview component renders text that is:
- Hidden from the email body (not visible to the user when reading the email)
- Visible in the email client’s inbox preview pane
- Automatically truncated to 150 characters maximum
- Padded with invisible whitespace characters to prevent email clients from showing body text in the preview
Example in Full Email
Best Practices
- Keep preview text concise and compelling (under 150 characters)
- Use preview text to encourage opens by summarizing the email’s value
- Avoid duplicating your subject line
- Place the
Previewcomponent near the top of your email (typically in the<Head>)
TypeScript
Email Client Support
This component was tested using the most popular email clients.| Gmail | Apple Mail | Outlook | Yahoo! Mail | HEY | Superhuman |
|---|---|---|---|---|---|
| ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |