Avatar with 6 sizes, status indicators, fallback initials, and group stacking. Built on Radix UI Avatar primitive.
Avatar is a composable component with Image and Fallback sub-components. It supports 6 size variants (xs through 2xl), 4 status indicators (online, offline, away, busy), and an AvatarGroup for stacking multiple avatars.
import {
Avatar,
AvatarImage,
AvatarFallback,
AvatarGroup,
} from "@/components/ui/shared/avatar"<Avatar>
<AvatarImage src="/avatar.jpg" alt="Jane Doe" />
<AvatarFallback>JD</AvatarFallback>
</Avatar>size"xs" | "sm" | "md" | "lg" | "xl" | "2xl""md"Avatar size variant
status"online" | "offline" | "away" | "busy"Status indicator dot
max (AvatarGroup)number4Max visible avatars before showing +N overflow