This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@react-email/avatar
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

React Email avatar cover

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

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

Name Type Default Description
src string The path to the image

Support

This component was tested using the most popular email clients.

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

License

MIT License

/@react-email/avatar/

    Package Sidebar

    Install

    npm i @react-email/avatar

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    11.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • bukinoshita
    • gabrielmfern
    • zenorocha