Files
2023-01-18 03:45:11 -03:00
..
2023-01-11 00:32:04 -03:00
2022-12-22 20:47:50 -04:00
2022-12-28 18:07:34 -08:00
2023-01-18 03:45:11 -03:00

React Email HTML cover

@react-email/body
A React body component to wrap emails.

Install

Install component from your command line.

With yarn

yarn add @react-email/body -E

With npm

npm install @react-email/body -E

Getting started

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

import { Html } from '@react-email/html';
import { Body } from '@react-email/body';
import { Section } from '@react-email/section';
import { Column } from '@react-email/section';

const Email = () => {
  return (
    <Html lang="en">
      <Body style={{ backgroundColor: '#61dafb' }}>
        <Section>
          <Column style={{ width: '50%' }}>{/* First column */}</Column>
          <Column style={{ width: '50%' }}>{/* Second column */}</Column>
        </Section>
      </Body>
    </Html>
  );
};

Support

This component was tested using the most popular email clients.

Gmail logo Apple Mail Outlook logo Yahoo! Mail logo HEY logo Superhuman logo
Gmail ✔ Apple Mail ✔ Outlook ✔ Yahoo! Mail ✔ HEY ✔ Superhuman ✔

License

MIT License