Avatar
atomCircular user image with an automatic initials fallback when the image is absent or fails to load. Available in five sizes.
With image
All five sizes with a photo.
Initials fallback
When no src is provided, initials are derived from alt.
Usage
Installation
API Reference
Avatar props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
alt* | string | "Jane Doe" | Alt text for the image. Also used to generate initials when src is missing. |
src | string | — | Image URL. If not provided or fails to load, initials are shown. |
size | "xs" | "sm" | "md" | "lg" | "xl" | "md" | Avatar diameter. |