overlapping avatars with a "+N" overflow count.

Live preview

+46 people joined this week

Install

From your site folder, run:

jprot add AvatarStack

That 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

PropTypeNote
avatarsarrayavatar URLs
extrastringtrailing count badge
notestringcaption on the side

↩ Back to all elements