[?] Component size, gzipped: 23kb
Avatar
Props
Style Overrides
Beta
Adds additional visual information about a user.
When to use
- When you want to show a user's image along contextual information.
- When you want to attribute an action to a user.
Accessibility
- Top level
nameprop will be set on the<img>element as itsaltattribute. - If src fails to load, applies
aria-labelwith provided name androlewith 'img' to root div element.
Examples
API
Avatar exports
You can import this module like so:
import {Avatar} from 'baseui/avatar'
It exports the following components or utility functions:
- Avatar
- StyledAvatar
- StyledInitials
- StyledRoot
