Avatar with Status Indicator
Avatar with Status Indicator is a React and Tailwind CSS feedback component from Bund UI, licensed MIT. Copy it and paste it into your project.
Bund UI
MIT
feedback
What it is
Avatar with Status Indicator is a React and Tailwind CSS feedback component from Bund UI, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from Bund UI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Avatar with Status Indicator
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
export default function AvatarWithStatusIcon() {
return (
<div className="flex gap-2">
<div className="relative">
<Avatar>
<AvatarImage src="https://www.tobybelhome.com/user.png" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<div className="border-background absolute -end-0.5 -top-0.5 size-3 rounded-full border-2 bg-green-500">
<span className="sr-only">Online</span>
</div>
</div>
<div className="relative">
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<div className="border-background absolute -end-0.5 -bottom-0.5 size-3 rounded-full border-2 bg-red-500">
<span className="sr-only">Offline</span>
</div>
</div>
<div className="relative">
<Avatar>
<AvatarImage src="https://images.unsplash.com/photo-1654110455429-cf322b40a906?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fGF2YXRhcnxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&q=60&w=300" />
<AvatarFallback>TB</AvatarFallback>
</Avatar>
<div className="border-background absolute -end-0.5 -top-0.5 size-3 rounded-full border-2 bg-orange-400">
<span className="sr-only">Offline</span>
</div>
</div>
</div>
);
}