data/@mihcm/ui·v0.21.0·stable
Avatar
User portrait. Compose Avatar + AvatarImage + AvatarFallback — fallback shows on image error and during load.
Props
The full prop API for Avatar. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Diameter. `sm` = 32 px, `md` = 40 px, `lg` = 48 px, `xl` = 64 px. | 0.3.0 |
className | string | — | Additional Tailwind classes on the outer span. | 0.3.0 |
Import
import { Avatar, AvatarImage, AvatarFallback } from '@mihcm/ui/Avatar';