{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "burst-demo",
  "title": "Burst Demo",
  "description": "A worked example of Burst: A short burst of pieces for the moment something finally completes. It draws nothing until it is fired and stops as soon as the last piece falls out of the box.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/burst.json"
  ],
  "files": [
    {
      "path": "components/demos/burst-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Burst, type BurstHandle } from \"@/registry/default/burst/burst\"\n\nexport function BurstDemo() {\n  const burst = React.useRef<BurstHandle>(null)\n  const [done, setDone] = React.useState(false)\n\n  return (\n    <div className=\"border-border bg-card relative isolate grid w-full max-w-md place-items-center overflow-hidden rounded-[var(--radius)] border px-6 py-14\">\n      <Burst ref={burst} announce=\"Invoice paid\" />\n\n      <p className=\"text-muted-foreground mb-4 text-sm\">\n        {done ? \"Invoice paid.\" : \"One step left on this invoice.\"}\n      </p>\n\n      <button\n        type=\"button\"\n        className=\"bg-primary text-primary-foreground focus-visible:ring-ring inline-flex min-h-11 items-center rounded-full px-5 text-sm font-semibold focus-visible:ring-2 focus-visible:outline-none\"\n        onClick={() => {\n          setDone(true)\n          burst.current?.fire()\n        }}\n      >\n        Mark as paid\n      </button>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}