Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A squircle portrait with initials as a fallback and an optional status dot.
npx shadcn@latest add ikislay/pixel-ui/avatarimport { Avatar } from "@/components/ui/avatar"export function Demo() {return <Avatar name="Mira Okafor" src="/mira.jpg" status="online" />}
1// Loading…
Options you can pass to customize this component.
name*stringThe person's name. It gives the initials and the accessible label.
srcstringThe photo URL.
sizesmmdlg32, 44 or 64 pixels square.
statusonlineawayofflineShows a status dot and adds it to the label.
classNamestringMerged onto the root element.