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>
);
}








