{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "forms-20",
  "type": "registry:block",
  "description": "Department-tabbed contact form whose fields change for sales, support and press.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input",
    "label",
    "native-select",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/forms/forms-20.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowRight,\n  Building2,\n  LifeBuoy,\n  Newspaper,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Input } from \"@workspace/ui/components/input\"\nimport { Label } from \"@workspace/ui/components/label\"\nimport {\n  NativeSelect,\n  NativeSelectOption,\n} from \"@workspace/ui/components/native-select\"\nimport { Textarea } from \"@workspace/ui/components/textarea\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst departments = [\n  {\n    id: \"sales\",\n    label: \"Projects\",\n    icon: Building2,\n    heading: \"Start a project with Designali\",\n    blurb: \"Brand identity, UI/UX design and Next.js development for brands that want to stand out.\",\n    contact: \"hello@designali.com\",\n  },\n  {\n    id: \"support\",\n    label: \"Support\",\n    icon: LifeBuoy,\n    heading: \"Get help with templates and blocks\",\n    blurb: \"Questions about installing or customising Designali products? We are happy to help.\",\n    contact: \"support@designali.com\",\n  },\n  {\n    id: \"press\",\n    label: \"Billing\",\n    icon: Newspaper,\n    heading: \"Billing and licences\",\n    blurb: \"Invoices, plan changes and licence questions for designali.com purchases.\",\n    contact: \"billing@designali.com\",\n  },\n]\n\nconst offices = [\n  { city: \"Instagram\", address: \"@designali.code\" },\n  { city: \"X\", address: \"@designali_com\" },\n]\n\nexport default function Forms20() {\n  const [active, setActive] = useState(\"sales\")\n  const department = departments.find((item) => item.id === active) ?? departments[0]!\n\n  return (\n    <section className=\"w-full bg-background py-20\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <h2 className=\"max-w-2xl text-4xl font-semibold tracking-tight md:text-5xl\">\n          How can Designali help?\n        </h2>\n\n        <div className=\"mt-10 grid grid-cols-3 border border-border\" role=\"tablist\" aria-label=\"Department\">\n          {departments.map((item) => (\n            <button\n              key={item.id}\n              type=\"button\"\n              role=\"tab\"\n              aria-selected={active === item.id}\n              onClick={() => setActive(item.id)}\n              className={cn(\n                \"flex items-center justify-center gap-2 border-border px-2 py-4 text-sm transition-colors not-last:border-r sm:justify-start sm:px-6\",\n                active === item.id ? \"bg-foreground text-background\" : \"hover:bg-muted\"\n              )}\n            >\n              <item.icon className=\"size-4 shrink-0\" />\n              {item.label}\n            </button>\n          ))}\n        </div>\n\n        <div className=\"grid border-x border-b border-border lg:grid-cols-[1fr_1.5fr]\">\n          <div className=\"flex flex-col justify-between gap-10 border-b border-border p-6 md:p-10 lg:border-r lg:border-b-0\">\n            <div>\n              <h3 className=\"text-2xl font-semibold tracking-tight\">{department.heading}</h3>\n              <p className=\"mt-3 text-sm leading-6 text-muted-foreground\">{department.blurb}</p>\n              <a href={`mailto:${department.contact}`} className=\"mt-6 inline-block font-sans text-sm underline underline-offset-4\">\n                {department.contact}\n              </a>\n            </div>\n            <ul className=\"grid gap-6 sm:grid-cols-2\">\n              {offices.map((office) => (\n                <li key={office.city}>\n                  <p className=\"text-sm font-medium\">{office.city}</p>\n                  <p className=\"mt-1 text-xs text-muted-foreground\">{office.address}</p>\n                </li>\n              ))}\n            </ul>\n          </div>\n\n          <form key={active} className=\"space-y-5 p-6 md:p-10\">\n            <div className=\"grid gap-5 sm:grid-cols-2\">\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"f20-name\">Name</Label>\n                <Input id=\"f20-name\" placeholder=\"Your name\" className=\"h-10\" />\n              </div>\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"f20-email\">Email</Label>\n                <Input id=\"f20-email\" type=\"email\" placeholder=\"you@example.com\" className=\"h-10\" />\n              </div>\n            </div>\n\n            {active === \"sales\" && (\n              <div className=\"grid gap-5 sm:grid-cols-2\">\n                <div className=\"space-y-2\">\n                  <Label htmlFor=\"f20-company\">Company</Label>\n                  <Input id=\"f20-company\" placeholder=\"Your company\" className=\"h-10\" />\n                </div>\n                <div className=\"space-y-2\">\n                  <Label htmlFor=\"f20-size\">Team size</Label>\n                  <NativeSelect id=\"f20-size\" className=\"w-full\" defaultValue=\"51-200\">\n                    <NativeSelectOption value=\"1-50\">1 - 50</NativeSelectOption>\n                    <NativeSelectOption value=\"51-200\">51 - 200</NativeSelectOption>\n                    <NativeSelectOption value=\"201-1000\">201 - 1,000</NativeSelectOption>\n                    <NativeSelectOption value=\"1000+\">1,000+</NativeSelectOption>\n                  </NativeSelect>\n                </div>\n              </div>\n            )}\n\n            {active === \"support\" && (\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"f20-workspace\">Your site URL</Label>\n                <div className=\"flex\">\n                  <span className=\"flex h-10 items-center border border-r-0 border-input bg-muted px-3 text-xs text-muted-foreground\">\n                    https://\n                  </span>\n                  <Input id=\"f20-workspace\" placeholder=\"your-site.vercel.app\" className=\"h-10\" />\n                </div>\n              </div>\n            )}\n\n            {active === \"press\" && (\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"f20-outlet\">Invoice number</Label>\n                <Input id=\"f20-outlet\" placeholder=\"INV-2026-0042\" className=\"h-10\" />\n              </div>\n            )}\n\n            <div className=\"space-y-2\">\n              <Label htmlFor=\"f20-message\">Message</Label>\n              <Textarea id=\"f20-message\" rows={5} placeholder=\"A few lines about what you need...\" />\n            </div>\n            <div className=\"flex justify-end\">\n              <Button type=\"submit\" size=\"lg\">\n                Send to {department.label.toLowerCase()}\n                <ArrowRight />\n              </Button>\n            </div>\n          </form>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "850px"
  },
  "categories": [
    "forms"
  ]
}