Avatar
import * as Avatar from '@dxos/react-ui/Avatar';An avatar is a person or object shown as an image, initials, an emoji or an icon. It is a circle or a square one block
across, or as wide as its host with fill. The fallback shows until the image loads.
| Part | What it is |
|---|---|
Avatar.Root |
The avatar. Its label, ring and hue apply here |
Avatar.Image |
The picture |
Avatar.Fallback |
Initials, an emoji or an icon, shown until the image loads |
Avatar.toAvatarHue |
A function that turns a stored hue name into an avatar hue |
Avatar.getAvatarGlyph |
The glyph to show for a name |