Skip to content

Avatar

A person in a circle: photo when you have one, initials when you do not. The demo image is an inline placeholder, labeled as such.

Example

Ada LovelaceGKRS
<Avatar src="..." alt="Ada Lovelace" />
<Avatar fallback="GK" />

Sizes

SMLXL
<Avatar size="sm" fallback="S" />
<Avatar size="xl" fallback="XL" />

Props

PropTypeDefaultDescription
src / altstring-Photo; meaningful alt for real people.
fallbackstring?Initials when there is no photo.
sizesm | md | lg | xlmdDiameter.
colorstring-Background tint.

Accessibility