Back to React Email

Container

apps/docs/components/container.mdx

0.0.15849 B
Original Source

import Support from '/snippets/support.mdx'

Install

Install component from your command line.

<CodeGroup>
sh
npm install @react-email/components -E

# or get the individual package

npm install @react-email/container -E
sh
yarn add @react-email/components -E

# or get the individual package

yarn add @react-email/container -E
sh
pnpm add @react-email/components -E

# or get the individual package

pnpm add @react-email/container -E
</CodeGroup>

Getting started

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

jsx
import { Container, Button } from "@react-email/components";

const Email = () => {
  return (
    <Container>
      <Button href="https://example.com" style={{ color: "#61dafb" }}>
        Click me
      </Button>
    </Container>
  );
};
<Support/>