Searching Puzzle Pieces

Type to search Puzzle Pieces.

Avatar Group

An overlapping stack of avatars rendered from an array, with a "+N" overflow chip once the count exceeds a max. Composes the Avatar piece for each disc, so image/initials/glyph fallback behavior matches Avatar exactly.

ALGrace HopperATKJ+1

Installation

Copy the piece into your app — it compiles with your build and the code is yours. AvatarGroup composes the Avatar piece, so copy both:

puzzle add piece avatar-group

Requires the pieces.css tokens merged into your app styles (see Introduction).

Usage

import AvatarGroup from '@/components/ui/AvatarGroup.pzl';
<AvatarGroup avatars={[ { name: 'Ada Lovelace' }, { src: '/grace.jpg', name: 'Grace Hopper' }, { name: 'Alan Turing' }, { name: 'Katherine Johnson' }, { name: 'Linus Torvalds' }, ]} max={ 4 } size="lg" label="5 collaborators" />

Overflow chip

ALGrace HopperAT+2

No overflow

ALGH

Sizes

ALGrace HopperATKJ+1
ALGrace HopperATKJ+1
ALGrace HopperATKJ+1

Large team

ALGHATKJ+12