An image with initials as a fallback. Comes in two shapes and several sizes.
Copy the command below and run it in your terminal.
bunx @sivir/ui add avatar
pnpm dlx @sivir/ui add avatar
npx @sivir/ui add avatar
yarn dlx @sivir/ui add avatar
Import and use the Avatar component:
import * as Avatar from '$lib/sivir/components/avatar'; <Avatar.Root> <Avatar.Image src="/avatar.jpg" alt="User" /> <Avatar.Fallback>AB</Avatar.Fallback> </Avatar.Root>