This package includes components relating to avatars in the Garden Design System.
npm install @zendeskgarden/react-avatars
# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming
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>;