Aliases
user avatar
AvatarImage or initials with configurable size, shape, and ring.
Aliases
user avatar
Foundations
Avatar for people, teams, or system identities that benefit from a compact visual marker.Avatar as a badge or status indicator by itself.avatar shell
root Carries shape, size, and ring treatment.
optional visual asset
image Shows the supplied image when available.
initials fallback
fallback Shows derived initials when no image exists.
| Name | Type | Default | Description |
|---|---|---|---|
name | string | — | Source for initials fallback and labeling. |
src | string | — | Optional image source. |
alt | string | — | Optional alt text for meaningful imagery. |
size | 'sm' | 'md' | 'lg' | 'md' | Sets the component size. |
shape | 'circle' | 'rounded' | 'circle' | Chooses the avatar silhouette. |
theme | ThemeContract | — | Sets the theme used to resolve component styles. |
| Name | Description |
|---|---|
default | Avatar is prop-driven and does not expose content slots. |
Variants
circle: Default circular identity marker.rounded: Rounded-rectangle identity marker with softer geometry.Sizes
sm: Compact identity marker for lists and metadata.md: Default avatar size.lg: Larger identity surface for headers and detail views.States
image: Image-backed avatarfallback: Initials-backed avatarSemantics
Avatar acts as supporting identity media rather than an interactive control.Keyboard
Screen readers
alt; otherwise keep decorative usage silent.Checklist
Implementation notes
A default fallback avatar using initials derived from the name.
<Avatar name="Design Kit" size="md" /> Provide src and useful alt text when the image itself matters.
<Avatar name="Anika Rose" src="/images/anika.jpg" alt="Anika Rose" size="sm" /> Rounded shape works well for teams or non-person entities.
<Avatar name="Relaunch Team" shape="rounded" size="lg" /> Calculated fixtures; browser evidence is not collected. Layout estimates use declared text behavior and maximum token values.
shape=circle|size=sm
shape=circle|size=md
shape=rounded|size=lg