0.0.2 • Published 2 years ago
@react-email/code v0.0.2
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