Avatar

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

Usage

Default

<Avatar name="Davin Chiupka" />

Props

Sortable data table
PropTypeDefaultDescription
srcstring-Image URL for the avatar. If not set, uses fallback initials or icon.
altstring-Alternative text for the image (improves accessibility).
namestring-Name or initials to display when no image is provided.
labelstring-Aria label for accessibility.
fallbackstring-Fallback string (e.g., initials) when no image is loaded.
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultSize of the avatar.
shape"circle" | "rounded" | "square""circle"Shape of the avatar.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme color.
state"" | "success" | "error" | "warning"-State style for semantic status (success, warning, error).
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow level for the avatar.
status"online" | "away" | "offline" | "busy" | "in-a-meeting" | "on-vacation" | "streaming" | "recording" | "typing" | "speaking" | "viewing" | "custom"-Status indicator dot or icon.
statusIconReactNode-Custom icon for the avatar status indicator (overrides default).
statusPosition"topLeft" | "topRight" | "bottomLeft" | "bottomRight""bottomRight"Position of the status indicator.
outlinebooleanfalseWhether to display a colored outline around the avatar.
prioritybooleanfalseIf true, loads the image with high priority (Next.js only).
hrefstring-If set, wraps avatar in a link.
classNamestring-Additional CSS class for custom styling.
childrenReactNode-Children for custom content inside the avatar (overrides src/fallback).
data-testidstring"avatar"Test ID for test automation.