{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "forms-04",
  "type": "registry:block",
  "description": "An NPS survey form with a 0 to 10 scale and follow-up comment.",
  "dependencies": [],
  "registryDependencies": [
    "button",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/forms/forms-04.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Textarea } from \"@workspace/ui/components/textarea\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst scores = Array.from({ length: 11 }, (_, index) => index)\n\nconst topics = [\"Templates\", \"Blocks\", \"Icons\", \"Docs\", \"Pricing\"]\n\nexport default function Forms04() {\n  const [score, setScore] = useState<number | null>(8)\n  const [selected, setSelected] = useState<string[]>([\"Docs\"])\n\n  const toggleTopic = (topic: string) =>\n    setSelected((current) =>\n      current.includes(topic)\n        ? current.filter((item) => item !== topic)\n        : [...current, topic]\n    )\n\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto max-w-3xl px-6 text-center\">\n        <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n          Quarterly survey · 2 minutes\n        </p>\n        <h2 className=\"mt-4 text-3xl font-semibold tracking-tight md:text-4xl\">\n          How likely are you to recommend Designali to a colleague?\n        </h2>\n\n        <div className=\"mt-10 grid grid-cols-11 border border-border\">\n          {scores.map((value) => (\n            <button\n              key={value}\n              type=\"button\"\n              onClick={() => setScore(value)}\n              className={cn(\n                \"border-border py-3 text-sm transition-colors not-last:border-r md:py-4\",\n                score === value\n                  ? \"bg-foreground text-background\"\n                  : \"hover:bg-muted\"\n              )}\n            >\n              {value}\n            </button>\n          ))}\n        </div>\n        <div className=\"mt-2 flex justify-between text-xs text-muted-foreground\">\n          <span>Not likely</span>\n          <span>Extremely likely</span>\n        </div>\n\n        <div className=\"mt-12 text-left\">\n          <p className=\"text-sm font-medium\">What should we improve first?</p>\n          <div className=\"mt-3 flex flex-wrap gap-2\">\n            {topics.map((topic) => (\n              <button\n                key={topic}\n                type=\"button\"\n                onClick={() => toggleTopic(topic)}\n                className={cn(\n                  \"border px-3 py-1.5 text-xs transition-colors\",\n                  selected.includes(topic)\n                    ? \"border-foreground bg-muted\"\n                    : \"border-border text-muted-foreground hover:text-foreground\"\n                )}\n              >\n                {topic}\n              </button>\n            ))}\n          </div>\n\n          <p className=\"mt-8 text-sm font-medium\">Anything else?</p>\n          <Textarea\n            rows={4}\n            className=\"mt-3\"\n            placeholder=\"I would love more dashboard blocks and Figma files for each template…\"\n          />\n        </div>\n\n        <div className=\"mt-8 flex items-center justify-between border-t border-border pt-6\">\n          <button\n            type=\"button\"\n            className=\"text-xs text-muted-foreground underline-offset-4 hover:underline\"\n          >\n            Skip for now\n          </button>\n          <Button size=\"lg\" disabled={score === null}>\n            Submit feedback\n          </Button>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "600px"
  },
  "categories": [
    "forms"
  ]
}