Components
Loading preview...
An image element with a fallback for representing the user.
npx shadcn@latest add https://21st.dev/r/sean0205/avatarimport { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
export default function AvatarDemo() {
return (
<div className="flex items-center rounded-full p-0.5 gap-1.5 border border-border shadow-sm shadow-black/5">
<div className="flex -space-x-1">
<Avatar className="size-7">
<AvatarImage src="https://avatars.githubusercontent.com/u/124599?v=4" alt="@reui" className="border-2 border-background hover:z-10" />
<AvatarFallback>CH</AvatarFallback>
</Avatar>
<Avatar className="size-7">
<AvatarImage src="https://avatars.githubusercontent.com/u/124599?v=4" alt="@reui" className="border-2 border-background hover:z-10" />
<AvatarFallback>CH</AvatarFallback>
</Avatar>
<Avatar className="size-7">
<AvatarImage src="https://avatars.githubusercontent.com/u/124599?v=4" alt="@reui" className="border-2 border-background hover:z-10" />
<AvatarFallback>CH</AvatarFallback>
</Avatar>
<Avatar className="size-7">
<AvatarImage src="https://avatars.githubusercontent.com/u/124599?v=4" alt="@reui" className="border-2 border-background hover:z-10" />
<AvatarFallback>CH</AvatarFallback>
</Avatar>
</div>
<p className="text-xs text-muted-foreground me-1.5">
Trusted by <span className="font-semibold text-foreground">100K+</span> useers.
</p>
</div>
);
}