Skip to content

Latest commit

 

History

History

avatars

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@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>;