Avatar API
Avatar displays user, team, project, or CMS identity with image and fallback support.
Preview components
Open the component docs to see examples, combinations, and usage patterns built on top of this API.
- AvatarIdentity examples and sizing patterns.
Preview
AXUICMS
Import
import { Avatar } from "@axonyx/react";Props
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | undefined | Optional image URL. |
| alt | string | "" | Image alt text. |
| fallback | ReactNode | undefined | Fallback initials or mark. |
| size | "sm" | "md" | "lg" | "md" | Avatar size. |
CSS contract
.ax-avatar [data-size]