Back to React Email

Readme

packages/code-inline/readme.md

0.0.152.8 KB
Original Source

<div align="center"><strong>@react-email/code-inline</strong></div> <div align="center">Display a predictable inline code HTML element that works on all email clients.</div> <div align="center"> <a href="https://react.email">Website</a> <span> · </span> <a href="https://github.com/resendlabs/react-email">GitHub</a> </div>

Install

Install component from your command line.

With yarn

sh
yarn add @react-email/code-inline -E

With npm

sh
npm install @react-email/code-inline -E

Getting started

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

jsx
import { CodeInline } from "@react-email/code-inline";

const Email = () => {
  return <CodeInline>@react-email/code-inline</CodeInline>;
};

Support

This component was tested using the most popular email clients.

Gmail ✔Apple Mail ✔Outlook ✔Yahoo! Mail ✔HEY ✔Superhuman ✔

License

MIT License