This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

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

0.0.2 • Public • Published

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

/@react-email/code/

    Package Sidebar

    Install

    npm i @react-email/code

    Weekly Downloads

    13

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    5.46 kB

    Total Files

    6

    Last publish

    Collaborators

    • bukinoshita
    • gabrielmfern
    • zenorocha