AvatarGroup
Overlapping avatars with a +N overflow.
Code
import * as React from 'react';
import { AvatarGroup } from '@fruit-labs/design';
export default function Demo() {
return <AvatarGroup people={['Ada L', 'Marco K', 'Jia S', 'Rosa T', 'Sam P']} />;
}Install
From npm:
npm install @fruit-labs/design
import { AvatarGroup } from '@fruit-labs/design';Or copy the TypeScript source into your project:
npx shadcn@latest add https://design.fruitlabs.online/r/avatar-group.jsonGuidelines
- Show up to 4; more collapse into +N.
Props
| Prop | Type | Required |
|---|---|---|
people | Array<string | { name: string; src?: string }> | Yes |
max | number | No |
size | number | No |
className | string | No |