Avatar
A person or team as an image or initials. Sizes: 32, 40 and 48px.
Installation
npx shadcn@latest add @sevenone/avatarUsage
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"Examples
Sizes and group
ASASAS
JLIN
<Avatar>
<AvatarImage src="/ana.jpg" alt="Ana Souza" />
<AvatarFallback>AS</AvatarFallback>
</Avatar>Accessibility
- Give the image an alt with the person's name.
- Initials are 7:1 on the muted background.