JSPM

  • Created
  • Published
  • Downloads 3930995
  • Score
    100M100P100Q8569F
  • License MIT

The main wrapper that hold your content

Package Exports

  • @react-email/container
  • @react-email/container/dist/index.js
  • @react-email/container/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@react-email/container) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Email container cover

@react-email/container
The main wrapper that hold your 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