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

8.76.3 • Public • Published

@zendeskgarden/react-avatars npm version

This package includes components relating to avatars in the Garden Design System.

Installation

npm install @zendeskgarden/react-avatars

# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming

Usage

import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Avatar, StatusIndicator } from '@zendeskgarden/react-avatars';

/**
 * Place a `ThemeProvider` at the root of your React application
 */
<ThemeProvider>
  <Avatar>
    <img src="images/user.png" alt="Example Avatar" />
  </Avatar>

  <StatusIndicator type="available" aria-label="status: online">
    Available
  </StatusIndicator>
</ThemeProvider>;

Package Sidebar

Install

npm i @zendeskgarden/react-avatars

Weekly Downloads

2,478

Version

8.76.3

License

Apache-2.0

Unpacked Size

68.7 kB

Total Files

35

Last publish

Collaborators

  • zendesk-garden