Skip to main content
BlocksAccept inviteCentred workspace invite with member avatars

shadcn/ui Accept invite block for React AriaCentred workspace invite with member avatars

Workspace invitation Card for shadcn/ui: a rounded workspace Avatar tile and name, the "Daniel Achterberg invited you to join Aurora Labs" headline, a secondary role Badge, three overlapping member Avatars with a "12 members already here" count, a full-width Accept Button and a ghost Decline Button. The CardFooter shows who is signed in with a switch-account link. The standard screen for existing users joining a team.

Free@shadcnpro/aria/accept-invite-01

Preview

Installation

npx shadcn@latest add @shadcnpro/aria/accept-invite-01

First time? Add the @shadcnpro registry to components.json as shown in Installation. Free blocks install without a license key.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Centred workspace invite with member avatars from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Centred workspace invite with member avatars uses Avatar, Badge, Button and Card, from the React Aria components set up in your components.json.

npx shadcn@latest add avatar badge button card

Copy the code

Paste it into components/blocks/accept-invite-01.tsx.

components/blocks/accept-invite-01.tsx
'use client';

import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardFooter } from '@/components/ui/card';

const members = [
  { name: 'Daniel Achterberg', slug: 'daniel-achterberg', initials: 'DA' },
  { name: 'Priya Natarajan', slug: 'priya-natarajan', initials: 'PN' },
  { name: 'Tomas Lindqvist', slug: 'tomas-lindqvist', initials: 'TL' },
];

/**
 * Centred workspace invitation Card: a workspace tile and name, the inviter sentence, a role Badge, three stacked member Avatars with a count, Accept and ghost Decline Buttons and a signed-in-as footer with an account switch link.
 */
export default function AcceptInvite01() {
  return (
    <div className="w-full max-w-sm px-4 py-8">
      <a className="mb-6 flex items-center justify-center gap-2" href="#">
        <img alt="" className="size-8 rounded-lg object-cover" src="/logo.png" />
        <span className="font-semibold text-foreground text-lg">Beacon</span>
      </a>
      <Card className="w-full">
        <CardContent className="flex flex-col items-center px-6 text-center">
          <Avatar className="size-16 rounded-xl">
            <AvatarImage alt="" src="https://avatar.vercel.sh/aurora-labs" />
            <AvatarFallback className="rounded-xl font-semibold text-lg">AL</AvatarFallback>
          </Avatar>
          <p className="mt-4 font-medium text-muted-foreground text-sm">Aurora Labs</p>
          <h1 className="mt-1 text-balance font-semibold text-2xl text-foreground tracking-tight">
            Daniel Achterberg invited you to join Aurora Labs
          </h1>
          <p className="mt-2 text-muted-foreground text-sm text-pretty">
            You&apos;ll be able to view and comment on issues across{' '}
            <span className="tabular-nums">8</span> projects.
          </p>
          <div className="mt-4 flex items-center gap-2">
            <span className="text-muted-foreground text-sm">Joining as</span>
            <Badge variant="secondary">Member</Badge>
          </div>

          <div className="mt-6 flex items-center gap-3">
            <div className="flex -space-x-2">
              {members.map((member) => (
                <Avatar className="size-8 ring-2 ring-card" key={member.slug}>
                  <AvatarImage
                    alt={member.name}
                    src={`https://avatar.vercel.sh/${member.slug}`}
                  />
                  <AvatarFallback className="text-xs">{member.initials}</AvatarFallback>
                </Avatar>
              ))}
            </div>
            <p className="text-muted-foreground text-sm">
              <span className="font-medium text-foreground tabular-nums">12</span> members
              already here
            </p>
          </div>

          <div className="mt-6 flex w-full flex-col gap-2">
            <Button className="w-full" type="button">
              Accept invitation
            </Button>
            <Button className="w-full text-muted-foreground" type="button" variant="ghost">
              Decline
            </Button>
          </div>
        </CardContent>
        <CardFooter className="justify-center border-border border-t pt-4 text-muted-foreground text-xs">
          <p>
            Signed in as{' '}
            <span className="font-medium text-foreground">maja@auroralabs.io</span> ·{' '}
            <a className="underline-offset-4 hover:text-foreground hover:underline" href="#">
              Switch account
            </a>
          </p>
        </CardFooter>
      </Card>
    </div>
  );
}

Use it

Import it where you need it and update the import path to match your project.

Usage
import AcceptInvite01 from '@/components/blocks/accept-invite-01';

export default function Page() {
  return <AcceptInvite01 />;
}

Overview

Centred workspace invite with member avatars is a free accept invite block for shadcn/ui and React Aria. It is built from the Avatar, Badge, Button and Card components, and installs as a single file you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Component library
React Aria (react-aria-components)
Also available for
Radix UI, Base UI
Built with
Avatar, Badge, Button and Card
npm packages
None
Files
components/blocks/accept-invite-01.tsx
Access
Free, installs without a license key

Frequently asked questions

Pricing, installation and React Aria details for Centred workspace invite with member avatars.