Avatar

The Avatar component is used to display a user's profile image, initials, or custom content with support for status indicators.

Usage & Examples

Default

default.tsx
<Avatar name="Davin Chiupka" />

Visual variants

Themes

primary
secondary
tertiary
quaternary

States

success
warning
error
info

Sizes

xs
small
medium
large

Variants

solid
outline
glass

Shadows

none
light
strong
visual-variants.tsx
// Themes
<Avatar theme="primary" name="Davin Chiupka" />
<Avatar theme="secondary" name="Davin Chiupka" />
<Avatar theme="tertiary" name="Davin Chiupka" />
<Avatar theme="quaternary" name="Davin Chiupka" />

// States
<Avatar state="success" name="Davin Chiupka" />
<Avatar state="warning" name="Davin Chiupka" />
<Avatar state="error" name="Davin Chiupka" />
<Avatar state="info" name="Davin Chiupka" />

// Sizes
<Avatar size="xs" name="Davin Chiupka" />
<Avatar size="small" name="Davin Chiupka" />
<Avatar size="medium" name="Davin Chiupka" />
<Avatar size="large" name="Davin Chiupka" />

// Variants
<Avatar variant="solid" name="Davin Chiupka" />
<Avatar variant="outline" name="Davin Chiupka" />
<Avatar variant="glass" name="Davin Chiupka" />

// Shadows
<Avatar shadow="none" name="Davin Chiupka" />
<Avatar shadow="light" name="Davin Chiupka" />
<Avatar shadow="strong" name="Davin Chiupka" />

Interaction states

Disabled
interaction-states.tsx
// Disabled
<Avatar disabled name="Davin Chiupka" />

Props API

31 props
Columns
Avatar props API
Default
Description
altstringNoprops—Alternative text for the avatar image. Used as the image alt text and may also contribute to the accessible name.
aria-currentboolean | "page" | "step" | "location" | "date" | "time"Noaria—Indicates the current state or item within a set when the avatar acts as a link. Example: page, step, location, date, time, true.
aria-describedbystringNoaria—References the element(s) that describe the avatar with additional context. Useful for status, activity, or profile details.
aria-labelstringNoaria—Explicit accessible name for the interactive avatar element. Overrides inferred labels such as label, alt, or name.
aria-labelledbystringNoaria—References the element(s) that label the avatar. Should take precedence over aria-label when provided.
childrenReactNodeNoprops—Custom child elements (replaces avatar content entirely).
classNamestringNostyling—Custom class names for the avatar container.
data-testidstringNotesting—Backward-compatible alias for test ID attributes.
disabledbooleanNopropsfalseDisables interaction and styles as disabled.
fallbackReactNodeNoprops—Custom fallback content (overrides initials).
hrefstringNoprops—If provided, avatar becomes a link (internal or external).
imageFillbooleanNopropsfalseIf true, passes a `fill` prop to a custom image component such as Next.js Image. Plain img rendering should leave this false.