@zendeskgarden/react-avatars
This package includes components relating to avatars in the
Garden Design System.
Installation
npm install @zendeskgarden/react-avatars
npm install react react-dom styled-components @zendeskgarden/react-theming
Usage
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Avatar, StatusIndicator } from '@zendeskgarden/react-avatars';
<ThemeProvider>
<Avatar>
<img src="images/user.png" alt="Example Avatar" />
</Avatar>
<StatusIndicator type="available" aria-label="status: online">
Available
</StatusIndicator>
</ThemeProvider>;