f0rextasy

Org Tree V2

Component

About

A collapsible organization chart that renders a tree of people cards with expand/collapse toggles, in vertical or horizontal layout.

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

Code

How Org Tree V2 is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { OrgTreeV2 } from "@/components/ui/org-tree-v2";

export default function OrgTreeV2Demo() {
  return (
    <div className="w-full p-8 bg-background text-foreground">
      <OrgTreeV2
        root={[
          {
            id: "1",
            label: "Ada Bull",
            role: "CEO",
            children: [
              {
                id: "2",
                label: "Grace H.",
                role: "CTO",
                children: [{ id: "3", label: "Linus T.", role: "Dev" }],
              },
              { id: "4", label: "John N.", role: "CFO" },
            ],
          },
        ]}
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    19
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    15
  • Network Graph

    Network Graph

    14
  • Navbar

    Navbar

    12
  • Running Order Timeline

    Running Order Timeline

    11
  • Milestone Chart

    Milestone Chart

    10
  • Empty State Card

    Empty State Card

    7