@zendeskgarden/react-avatars
v9.4.0
Published
Components relating to avatars in the Garden Design System
Downloads
286,367
Maintainers
Readme
@zendeskgarden/react-avatars
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>;