Skip to Content
ComponentsAvatar

Avatar

Image with a lazy-loading fallback. Fallback renders automatically when src is empty or the image fails to load.

Preview

Anatomy

import { Avatar } from '@wire-ui/react' <Avatar.Root> <Avatar.Image src="/avatar.jpg" alt="User avatar" /> <Avatar.Fallback>JD</Avatar.Fallback> </Avatar.Root>

Image data attributes

AttributeValues
data-status"loading""loaded" / "error"

Fallback renders when data-status is "error" or src is empty.

Last updated on

MIT License © 2026 wire-ui