Preview

Renders a preview viewable in recipient email clients

Tips

Email clients have this concept of “preview text” which gives insight into what’s inside the email before you open. A good practice is to keep that text under 90 characters.

pnpm
aube
bun
npm
yarn
pnpm add jsx-email

Usage

Add the component to your email template. Include styles where needed.

import { Preview } from 'jsx-email';

const Email = () => {
  return <Preview>Email preview text</Preview>;
};

Component Props

This component has no custom props, but expresses all of the Common Component Props for ComponentProps<'div'>.