apps/docs/components/preview.mdx
import Support from '/snippets/support.mdx'
<Info> 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. </Info>Install component from your command line.
<CodeGroup>npm install @react-email/components -E
# or get the individual package
npm install @react-email/preview -E
yarn add @react-email/components -E
# or get the individual package
yarn add @react-email/preview -E
pnpm add @react-email/components -E
# or get the individual package
pnpm add @react-email/preview -E
Add the component to your email template. Include styles where needed.
import { Preview } from "@react-email/components";
const Email = () => {
return <Preview>Email preview text</Preview>;
};