npm.io
0.0.2 • Published 3 years ago

@react-email/code

Licence
MIT
Version
0.0.2
Deps
1
Size
5 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

React Email code cover

@react-email/code
A block of code to be rendered in your email.

Install

Install component from your command line.

With yarn

yarn add @react-email/code -E
With npm
npm install @react-email/code -E

Getting started

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

import { Container } from '@react-email/container';
import { Code } from '@react-email/code';

const Email = () => {
  return (
    <Container>
      <Code style={{ color: '#000' }}>const foo = 'bar';</Code>
    </Container>
  );
};

License

MIT License