1.0.0-16 • Published 8 years ago
@react-spectre/avatar v1.0.0-16
@react-spectre/avatar
React components for Spectre.css avatar element.
Installation
yarn add @react-spectre/avatarnpm install @react-spectre/avatar --saveUsage
Avatar
Avatars are user profile pictures.
import { Avatar, Presence, Icon } from '@react-spectre/avatar'<Avatar src="img/avatar-1.png" icon /><Avatar src="assets/react-spectre-logo.png" lg>
<Avatar.Icon src="img/avatar-2.png" />
</Avatar><Avatar initial={'YZ'} style={{ backgroundColor: '#5755d9' }} xl>
<Avatar.Presence online />
</Avatar>Note: The main component is
Avatar, other component can be accessed through it, for example:Avatar.PresenceandAvatar.Icon.
Made with :heart: by Rubens Mariuzzo.