Command Palette

Search for a command to run...

Docs
Stacked avatar

Stacked avatar

Stacked avatar.

fallback
fallback
fallback
fallback

Installation

pnpm dlx shadcn@latest add "https://akasha-ui.pages.dev/r/styles/default/stacked-avatar.json"

Usage

import { StackedAvatar } from "<path-to-ui-components>/stacked-avatar";
const avatars = [
  { src: "https://github.com/akashaorg.png", alt: "@akashaorg" },
  { src: "https://github.com/akashaorg.png", alt: "@akashaorg" },
  { src: "https://github.com/akashaorg.png", alt: "@akashaorg" },
  { src: "https://github.com/akashaorg.png", alt: "@akashaorg" },
];
return (
  <StackedAvatar size={avatars.length}>
    {(index) => (
      <ProfileAvatar>
        <ProfileAvatarImage src={avatars[index].src} alt={avatars[index].alt} />
        <ProfileAvatarFallback />
      </ProfileAvatar>
    )}
  </StackedAvatar>
);

Props

NameTypeDescription
sizenumberTotal number of avatars.