overlapping avatars with a "+N" overflow count.
Install
From your site folder, run:
jprot add AvatarStackThat downloads the self-contained component into theme/components/AvatarStack.js,
where it is picked up automatically — the same way as any built-in component.
To remove it later, just delete that file.
Use it as a homepage section
Add an entry to the sections: list in jprot.config.js:
sections: [
{ component: 'AvatarStack', title: 'AvatarStack' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::AvatarStack avatars='["https://picsum.photos/seed/a1/80","https://picsum.photos/seed/a2/80","https://picsum.photos/seed/a3/80","https://picsum.photos/seed/a4/80"]' extra="+46" note="people joined this week"Props
| Prop | Type | Note |
|---|---|---|
avatars | array | avatar URLs |
extra | string | trailing count badge |
note | string | caption on the side |