Avatarshadcn
A person's photo or initials.
Data display- Install
- npx shadcn add avatar
- Import from
- @/components/ui/avatar
- Guidance
- draft · v0.1.0
Examples
As installed from shadcn – rendering in jsp-ds tokens through the bridge.
JPDCRS
Guidance
When to use
- To show who: comment authors, assignees, the account menu.
Rules
- Always an
AvatarFallbackwith initials – the image may fail to load. - An image's
altis the person's name. Beside the name in text, the avatar is decorative:alt="". - Stack several with a "+3" count rather than showing everyone.
Install
Terminal
npx shadcn add avatarImport
import { Avatar } from "@/components/ui/avatar"From shadcn’s own registry. Don’t edit the installed file – jsp-ds styles it through the bridge, and fixes go in styles/overrides.css with an issue.