apps/docs/components/container.mdx
import Support from '/snippets/support.mdx'
Install component from your command line.
<CodeGroup>npm install @react-email/components -E
# or get the individual package
npm install @react-email/container -E
yarn add @react-email/components -E
# or get the individual package
yarn add @react-email/container -E
pnpm add @react-email/components -E
# or get the individual package
pnpm add @react-email/container -E
Add the component to your email template. Include styles where needed.
import { Container, Button } from "@react-email/components";
const Email = () => {
return (
<Container>
<Button href="https://example.com" style={{ color: "#61dafb" }}>
Click me
</Button>
</Container>
);
};