0.0.8 • Published 11 days ago

@react-email/img v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

React Email img cover

Install

Install component from your command line.

With yarn

yarn add @react-email/img -E

With npm

npm install @react-email/img -E

Getting started

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

import { Img } from "@react-email/img";

const Email = () => {
  return <Img src="cat.jpg" alt="Cat" width="300" height="300" />;
};

Props

NameTypeDefaultDescription
altstringAlternate description for an image
srcstringThe path to the image
widthstringThe width of an image in pixels
heightstringThe height of an image in pixels

Support

This component was tested using the most popular email clients.

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

License

MIT License