Avatar

Feedback
Local guide ↗ import { Avatar } from "bits-ui"

Loaded image

A self-contained SVG portrait with the root's live loading status

AM

Avery Morgan

Design systems

loading

Broken source fallback

An intentionally invalid local URL exposes loading, error and fallback behaviour

···

Deliberately unavailable source

loadingStatus: loading

Avatar group

Loaded data-URL portraits overlap without relying on a remote image host

Mina Lee
Jon Bell
Sam Ortiz
Ivy Chen

4 collaborators

Hover a portrait for the name

loadingStatus is bindable and moves through loading, loaded and error; the same value is exposed as data-status on all three parts. The fallback is rendered while loading and after an error. For a source known to be available, setting loadingStatus="loaded" skips the image load check; delayMs can otherwise delay revealing a loaded image.