my/ui

Command Palette

Search for a command to run...

All components

Avatar Group Muted Pill

avatars

Origin UI component.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/comp-410.json

Usage

import Cmp from "@/registry/origin-ui/comp-410";

export default function Demo() {
  return <Cmp />;
}

Component source

import { Button } from "@/components/ui/button";

export default function Component() {
  return (
    <div className="flex items-center rounded-full bg-muted p-0.5">
      <div className="-space-x-3 flex">
        <img
          alt="Avatar 01"
          className="rounded-full ring-2 ring-muted"
          height={40}
          src="/origin/avatar-80-03.jpg"
          width={40}
        />
        <img
          alt="Avatar 02"
          className="rounded-full ring-2 ring-muted"
          height={40}
          src="/origin/avatar-80-04.jpg"
          width={40}
        />
        <img
          alt="Avatar 03"
          className="rounded-full ring-2 ring-muted"
          height={40}
          src="/origin/avatar-80-05.jpg"
          width={40}
        />
        <img
          alt="Avatar 04"
          className="rounded-full ring-2 ring-muted"
          height={40}
          src="/origin/avatar-80-06.jpg"
          width={40}
        />
      </div>
      <Button
        className="flex items-center justify-center rounded-full bg-transparent px-3 text-muted-foreground text-xs shadow-none hover:bg-transparent hover:text-foreground"
        variant="secondary"
      >
        +3
      </Button>
    </div>
  );
}

Source: Origin UI