Files
resend__react-email/packages/container
github-actions[bot] 576a4e1fb5 chore(root): version packages (#2755)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-29 09:58:25 -03:00
..
2025-01-27 16:53:57 -03:00
2024-01-18 18:03:36 -08:00

React Email container cover

@react-email/container
A layout component that centers all the email content.

Install

Install component from your command line.

With yarn

yarn add @react-email/container -E

With npm

npm install @react-email/container -E

Getting started

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

import { Button } from "@react-email/button";
import { Container } from "@react-email/container";

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

License

MIT License