Skip to main content

Avatar

Displays a user image, initials fallback, or a default icon.

With Initials

Shapes

Status indicator

Pass status to render a colored dot in the bottom-right corner — useful for presence in chat / collaboration UI.

Outlined (stacked)

For overlapping avatar stacks, set outlined to add a ring matching the page background — separates each avatar from its neighbor without needing manual gaps.

Default Fallback

When no src or name is provided, a generic user icon is shown.

Props

PropTypeDefaultDescription
srcstring-Image URL
altstring''Alt text for the image
namestring-Name used to derive initials when no image is available
shape'circle' | 'square''circle'Shape of the avatar
size'sm' | 'md' | 'lg''md'Size of the avatar
status'online' | 'away' | 'busy' | 'offline'-Presence indicator dot in the bottom-right corner
outlinedbooleanfalseAdd a ring matching --tui-bg (good for stacked avatars)
classNamestring-Additional CSS class
styleCSSProperties-Inline styles