MiHCM
data/@mihcm/ui·v0.21.0·stable

AvatarGroup

Stacked, overlapping row of Avatar components with an overflow "+N" count. The size prop forwards to children. max controls the visible limit.

Live preview

Adjust the controls on the right; the preview and code update in real time.

Jane DoeAlex KimMaya Chen+2
example.tsxtsx
import { AvatarGroup } from '@mihcm/ui/AvatarGroup';

export function Example() {
  return (
    <AvatarGroup
  max="3"
  size="md"
  overlap="md"
  direction="row"
  stackOrder="last-on-top"
    ></AvatarGroup>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add AvatarGroup
Copies the source into components/ds/AvatarGroup.tsx. You own the file. Use --out to override the directory or --force to overwrite.