Display
Avatar
stableUser image with initials fallback, presence dot and stacked groups.
since v1.41.1 kB gzip
Preview
JRAO
Installation
npx @strata/cli add avatarUsage
import { Avatar, AvatarGroup } from "@/components/strata";
<AvatarGroup>
<Avatar src="/maya.jpg" alt="Maya Chen" />
<Avatar fallback="JR" alt="Jonas Reyes" />
</AvatarGroup>Props
| Prop | Type | Default |
|---|---|---|
srcImage URL. | string | — |
fallbackShown while loading or on error. | ReactNode | — |
sizeDiameter. | "xs" | "sm" | "md" | "lg" | "xl" | "md" |
statusPresence dot. | "online" | "away" | "busy" | "offline" | — |
Accessibility
Related
Badge
Compact status or count label in four styles.
Kbd
Renders keyboard shortcuts consistently across platforms.
Was this page helpful?
Documented since v1.4 · components/avatar.mdx