Avatar

A raised avatar with a photo or colourful initials, in four sizes and two shapes, with an optional presence dot that screen readers also hear.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Avatar3D props

PropTypeDefaultDescription
srcstringImage address. If it is missing or fails, initials are shown.
namestringFull name. Used for the initials, the colour and the accessible name.
size"sm" | "md" | "lg" | "xl""md"Size of the avatar.
shape"circle" | "square""circle"Circle or rounded square.
status"online" | "away" | "busy" | "offline"Presence dot shown at the bottom right.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks