affectUI › Illustrations › Card illustrations

Team Invite

Connected teammates – a cursor drags a new one into the empty slot, the line turns solid and they go online.

Free and open source (MIT). Install: npx shadcn@latest add https://www.affectui.com/r/team-invite.json · Import from @/components/ui/team-invite

When to use

  • Feature cards about inviting teammates, collaboration, sharing or multiplayer
  • Onboarding steps like “Invite your team” where a friendly, moving scene helps

When not to use

  • Showing your real team list – the scene is decorative and loops on its own
  • Places that need to stay completely still – use prefers-reduced-motion or a static image

Usage

import { TeamInvite } from "@/components/ui/team-invite";

export function FeatureCard() {
  return (
    <article style={{ maxWidth: 420 }}>
      <TeamInvite
        avatars={[
          { src: "/team/maya.png", name: "Maya" },
          { src: "/team/finn.png", name: "Finn" },
          { src: "/team/lea.png", name: "Lea" },
        ]}
      />
      <h3>Invite your team</h3>
      <p>Bring everyone into the same workspace in seconds.</p>
    </article>
  );
}

Props

NameTypeDefaultDescription
avatars[TeamInviteAvatar, TeamInviteAvatar, TeamInviteAvatar]Required. The two connected teammates, then the one being invited – each { src, name? } with a square portrait
labelstringAccessible description – by default built from the names
classNamestringExtra class on the root, e.g. for width or margins

Accessibility

  • Exposed as one image with a descriptive label built from the names; avatars, lines and cursor are hidden from screen readers
  • Nothing in the scene is interactive

Responsive

  • Transparent background, so it sits on any light or dark surface
  • Keeps a 3 : 2 aspect ratio and scales to the width of its container – every size is in container units
  • Avatars are square portraits shown in white-ringed circles; photos, 3D faces or illustrations all work
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19