@react-email/container
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i @react-email/container

    Weekly Downloads

    391,999

    Version

    0.0.14

    License

    MIT

    Unpacked Size

    9.95 kB

    Total Files

    7

    Last publish

    Collaborators

    • gabrielmfern
    • bukinoshita
    • zenorocha