{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stream-glow-demo",
  "title": "Stream Glow Demo",
  "description": "A worked example of Stream Glow: An edge that breathes along a region while tokens land in it, and stops the moment they do.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/stream-glow.json"
  ],
  "files": [
    {
      "path": "components/demos/stream-glow-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { StreamGlow } from \"@/registry/default/stream-glow/stream-glow\"\n\nexport function StreamGlowDemo() {\n  const [streaming, setStreaming] = React.useState(true)\n\n  return (\n    <div className=\"grid w-full max-w-md gap-4\">\n      <StreamGlow\n        active={streaming}\n        rate={0.8}\n        className=\"border-border bg-card rounded-[var(--radius)] border p-6\"\n      >\n        <p className=\"text-sm\">\n          The edge breathes while tokens land, and stops the moment they do.\n        </p>\n        <p className=\"text-muted-foreground mt-2 text-xs\" role=\"status\">\n          {streaming ? \"Answering\" : \"Finished\"}\n        </p>\n      </StreamGlow>\n\n      <button\n        type=\"button\"\n        className=\"border-border mx-auto inline-flex min-h-11 items-center rounded-full border px-4 text-sm font-semibold\"\n        onClick={() => setStreaming((value) => !value)}\n      >\n        {streaming ? \"Stop\" : \"Start\"}\n      </button>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}