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








