New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@react-email/avatar

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-email/avatar

Displays a profile picture or a fallback to the user initials.

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
5
-28.57%
Maintainers
2
Weekly downloads
 
Created
Source

React Email avatar cover

@react-email/avatar
Displays a profile picture or a fallback to the user initials.

Website · GitHub · Discord

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 logoApple MailOutlook logoYahoo! Mail logoHEY logoSuperhuman logo
Gmail ✔Apple Mail ✔Outlook ✔Yahoo! Mail ✔HEY ✔Superhuman ✔

License

MIT License

FAQs

Package last updated on 13 Oct 2022

Related posts