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" />

Props API

32 props
Columns
Avatar props API
Default
Description
altstringNopropsAlternative 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"NoariaIndicates the current state or item within a set when the avatar acts as a link. Example: page, step, location, date, time, true.
aria-describedbystringNoariaReferences the element(s) that describe the avatar with additional context. Useful for status, activity, or profile details.
aria-labelstringNoariaExplicit accessible name for the interactive avatar element. Overrides inferred labels such as label, alt, or name.
aria-labelledbystringNoariaReferences the element(s) that label the avatar. Should take precedence over aria-label when provided.
childrenReactNodeNopropsCustom child elements (replaces avatar content entirely).
classNamestringNostylingCustom class names for the avatar container.
data-testidstringNotestingBackward-compatible alias for test ID attributes.
disabledbooleanNopropsfalseDisables interaction and styles as disabled.
fallbackReactNodeNopropsCustom fallback content (overrides initials).
glassbooleanNopropsconfigured default glass setting (fallback: false)Applies a translucent frosted-glass treatment using the active theme palette.
hrefstringNopropsIf provided, avatar becomes a link (internal or external).