Simal UI
Components

Avatar

Import

import { Avatar } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
alt"User avatar"Accessible label. Required — an avatar with no alt text is an unlabelled image to a screen reader.
classNameSize lives here (h-10 w-10), not in a prop. AvatarImage and AvatarFallback fill whatever the root is sized to.

Examples

Fallback

AvatarFallback is what renders while the image loads and after it fails. Pointing the image at a dead URL is the only way to see it reliably.

Sizes

Size comes from the utility classes, not a prop.

On this page