data/@mihcm/ui·v0.21.0·stable
Avatar
User portrait. Compose Avatar + AvatarImage + AvatarFallback — fallback shows on image error and during load.
Live preview
Adjust the controls on the right; the preview and code update in real time.

example.tsxtsx
import { Avatar, AvatarImage, AvatarFallback } from '@mihcm/ui/Avatar';
export function Example() {
return (
<Avatar
src="/people/photos/alex-kim.jpg"
fallback="YS"
size="md"
></Avatar>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add AvatarCopies the source into
components/ds/Avatar.tsx. You own the file. Use --out to override the directory or --force to overwrite.