0.0.10 • Published 10 months ago
@react-email/img v0.0.10
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
Name | Type | Default | Description |
---|---|---|---|
alt | string | Alternate description for an image | |
src | string | The path to the image | |
width | string | The width of an image in pixels | |
height | string | The 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
0.0.10
10 months ago
0.0.9-canary.1
11 months ago
0.0.9-canary.0
12 months ago
0.0.10-canary.0
11 months ago
0.0.9
11 months ago
0.0.8
1 year ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.3
2 years ago
0.0.2
3 years ago
0.0.4
2 years ago
0.0.1
3 years ago