{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "orb-demo", "registryDependencies": [ "https://ui.elevenlabs.io/r/orb.json", "button" ], "files": [ { "path": "examples/orb-demo.tsx", "content": "\"use client\"\n\nimport { useState } from \"react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { AgentState, Orb } from \"@/components/ui/orb\"\n\nlet ORBS: [string, string][] = [\n [\"#CADCFC\", \"#A0B9D1\"],\n [\"#F6E7D8\", \"#E0CFC2\"],\n [\"#E5E7EB\", \"#9CA3AF\"],\n]\n\nexport default function OrbDemo({ small = false }: { small?: boolean }) {\n const [agent, setAgent] = useState(null)\n\n ORBS = small ? [ORBS[0]] : ORBS\n\n return (\n
\n
\n

Agent Orbs

\n

\n Interactive orb visualization with agent states\n

\n
\n\n
\n
\n {ORBS.map((colors, index) => (\n \n
\n
\n \n
\n
\n
\n ))}\n
\n\n
\n setAgent(null)}\n disabled={agent === null}\n >\n Idle\n \n setAgent(\"listening\")}\n disabled={agent === \"listening\"}\n >\n Listening\n \n setAgent(\"talking\")}\n >\n Talking\n \n
\n
\n \n )\n}\n", "type": "registry:example" } ], "type": "registry:example" }