0.0.2 • Published 2 years ago

@react-email/avatar v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React Email avatar cover

Install

Install component from your command line.

With yarn

yarn add @react-email/avatar -E

With npm

npm install @react-email/avatar -E

Getting started

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

Avatar

import { Avatar, AvatarImage, AvatarFallback } from '@react-email/avatar';

const Email = () => {
  return (
    <Avatar>
      <AvatarImage src="cat.jpg" />
      <AvatarFallback>My Cat</AvatarFallback>
    </Avatar>
  );
};

Props

NameTypeDefaultDescription
srcstringThe path to the image

Support

This component was tested using the most popular email clients.

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

License

MIT License