AvatarGroup
Show a compact stack of avatars with an overflow count.
Anatomy#
Usage#
Use AvatarGroup to show a small set of people in a bounded space. It truncates the visible stack at
maxVisible. Keep the full membership available elsewhere when users need every name. For a single person,
use Avatar.
Overflow count#
Each entry in items accepts the Avatar props except size: every avatar
uses the group size (default md). AvatarGroup renders nothing for an empty items
array, and items keep input order in the DOM.
Omit maxVisible to show every avatar. A positive maxVisible is rounded down. Set maxVisible to 0 (or any negative
value) to show only the +N count. N is the number of hidden items.
Examples#
Reviewer overflow#
Cap a reviewer stack with maxVisible so the remaining people collapse into +N. Set
maxVisible={0} where only the count fits.
API Reference#
Attributes#
data-statusProps#
Props for the AvatarGroup component. Renders a <div> element by default.