terra vidhal

Team Directory

Component 6

About

A team directory with animated member cards, live search, role filters as a keyboard radio group, an inline invitation form with email validation, editable roles, removal with a timed undo and status badges for active and invited people. The owner row is protected and role changes announce themselves politely.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Team Directory to your project and fits it to your theme.

Code

How Team Directory is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { TeamDirectory, type TeamMember } from "@/components/ui/team-directory";

const MEMBERS: TeamMember[] = [
  {
    id: "mara",
    name: "Mara Ellison",
    email: "mara.ellison@example.com",
    role: "owner",
    status: "active",
  },
  {
    id: "theo",
    name: "Theo Nakamura",
    email: "theo.nakamura@example.com",
    role: "admin",
    status: "active",
  },
  {
    id: "priya",
    name: "Priya Raman",
    email: "priya.raman@example.com",
    role: "editor",
    status: "active",
  },
  {
    id: "jonas",
    name: "Jonas Weber",
    email: "jonas.weber@example.com",
    role: "editor",
    status: "active",
  },
  {
    id: "amara",
    name: "Amara Okafor",
    email: "amara.okafor@example.com",
    role: "viewer",
    status: "active",
  },
  {
    id: "lena",
    name: "Lena Fischer",
    email: "lena.fischer@example.com",
    role: "viewer",
    status: "invited",
  },
  {
    id: "diego",
    name: "Diego Marín",
    email: "diego.marin@example.com",
    role: "editor",
    status: "active",
  },
];

export default function TeamDirectoryDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-12 sm:px-6">
      <TeamDirectory
        members={MEMBERS}
        title="Team"
        description="Everyone with access to this workspace, and what they can do."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    26
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Kanban Board

    Kanban Board

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Booking Calendar

    Booking Calendar

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.