Avatar
A compact identity marker for people and accounts.
Show a team or set of contributors in a small space.
npx shadcn@latest add @silicon-ui/avatar-groupnpx shadcn@latest add @silicon-ui/avatar-groupInstall the dependencies.
npm install motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/avatar-group/avatar-group.tsxcomponents/silicon-ui/avatar-group/avatar-group.module.csscomponents/silicon-ui/avatar/avatar.tsx sharedcomponents/silicon-ui/avatar/avatar.module.css sharedcomponents/silicon-ui/lib/silicon-provider.tsx sharedInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
members* | AvatarGroupMember[] | — |
max | number | 4 |
size | "sm" | "md" | "lg" | "md" |
label | string | "Team members" |