display

Avatar

Round image display with automatic initials fallback when image is missing or fails to load.

Import

import { Avatar } from '@stella-ds/react'

Props

PropTypeDefaultDescription
altstringRequired. Alt text and fallback initial source
srcstringundefinedImage URL
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Avatar diameter (24/32/40/48/64px)
fallbackReactNodefirst char of altCustom fallback content

Preview

Examples

Basic

<Avatar src="/photo.jpg" alt="Jane Doe" size="lg" />
Alert
All Components
Background