Avatar
bundui/avatar-with-status-indicatorFreeComponent
An image element with fallbacks for representing the user.
Live preview
live · rendered by the registry
Rendered by bundui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://bundui.io/r/avatar-with-status-indicator.jsonSource
1import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";23export default function AvatarWithStatusIcon() {4 return (5 <div className="flex gap-2">6 <div className="relative">7 <Avatar>8 <AvatarImage src="https://www.tobybelhome.com/user.png" />9 <AvatarFallback>CN</AvatarFallback>10 </Avatar>11 <div className="border-background absolute -end-0.5 -top-0.5 size-3 rounded-full border-2 bg-green-500">12 <span className="sr-only">Online</span>13 </div>14 </div>1516 <div className="relative">17 <Avatar>18 <AvatarImage src="https://github.com/shadcn.png" />19 <AvatarFallback>CN</AvatarFallback>20 </Avatar>21 <div className="border-background absolute -end-0.5 -bottom-0.5 size-3 rounded-full border-2 bg-red-500">22 <span className="sr-only">Offline</span>23 </div>24 </div>2526 <div className="relative">27 <Avatar>28 <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" />29 <AvatarFallback>TB</AvatarFallback>30 </Avatar>31 <div className="border-background absolute -end-0.5 -top-0.5 size-3 rounded-full border-2 bg-orange-400">32 <span className="sr-only">Offline</span>33 </div>34 </div>35 </div>36 );37}
What it pulls in
Other registry items
Files it writes
More from bundui
All 217 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-collapsible | bundui | Components | Free | no deps · 2 files | |
| Accordionaccordion-default | bundui | Components | Free | no deps | |
| Accordionaccordion-with-plus-icon | bundui | Components | Free | 2 deps | |
| Alertalert-danger | bundui | Components | Free | 1 dep | |
| Alertalert-default | bundui | Components | Free | no deps | |
| Alert Dialogalert-dialog | bundui | Components | Free | no deps | |
| Alertalert-success | bundui | Components | Free | 1 dep | |
| Alertalert-warning | bundui | Components | Free | 1 dep |
