{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "contact-2",
  "title": "Single Card Contact Form",
  "description": "Centered contact form card with split first and last name fields, topic select, message textarea, and a privacy consent checkbox.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "button",
    "card",
    "checkbox",
    "field",
    "input",
    "select",
    "sonner",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/blocks/contact/2/contact-block.tsx",
      "content": "\"use client\"\nimport { toast } from \"sonner\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\"\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\"\nimport { Toaster } from \"@/components/ui/sonner\"\nimport { Textarea } from \"@/components/ui/textarea\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nconst TOPICS = [\"General inquiry\", \"Sales\", \"Support\", \"Partnership\", \"Other\"]\n\nexport default function ContactBlock() {\n  return (\n    <section className=\"flex w-full items-center justify-center bg-background px-6 py-12 text-foreground\">\n      <Toaster />\n      <Card className=\"w-full max-w-lg\">\n        <form\n          className=\"flex flex-col gap-(--card-spacing)\"\n          onSubmit={(e) => {\n            e.preventDefault()\n            toast.success(\"Message sent. We'll reply within one business day.\")\n          }}\n        >\n          <CardHeader className=\"border-b\">\n            <div className=\"flex items-center gap-2.5\">\n              <span className=\"flex size-8 items-center justify-center rounded-md border border-border bg-muted\">\n                <IconPlaceholder\n                  lucide=\"Send\"\n                  tabler=\"IconSend\"\n                  hugeicons=\"MailSendIcon\"\n                  phosphor=\"PaperPlane\"\n                  remixicon=\"RiMailSendLine\"\n                  className=\"size-4 text-muted-foreground\"\n                  aria-hidden=\"true\"\n                />\n              </span>\n              <div>\n                <CardTitle className=\"text-sm font-semibold\">\n                  Contact us\n                </CardTitle>\n                <CardDescription>\n                  We reply within one business day.\n                </CardDescription>\n              </div>\n            </div>\n          </CardHeader>\n\n          <CardContent>\n            <FieldGroup>\n              <div className=\"grid grid-cols-2 gap-4\">\n                <Field>\n                  <FieldLabel htmlFor=\"first-name\">First name</FieldLabel>\n                  <Input id=\"first-name\" type=\"text\" placeholder=\"Jane\" />\n                </Field>\n                <Field>\n                  <FieldLabel htmlFor=\"last-name\">Last name</FieldLabel>\n                  <Input id=\"last-name\" type=\"text\" placeholder=\"Doe\" />\n                </Field>\n              </div>\n\n              <Field>\n                <FieldLabel htmlFor=\"email\">Work email</FieldLabel>\n                <Input id=\"email\" type=\"email\" placeholder=\"jane@company.com\" />\n              </Field>\n\n              <Field>\n                <FieldLabel htmlFor=\"topic\">Topic</FieldLabel>\n                <Select name=\"topic\">\n                  <SelectTrigger id=\"topic\" className=\"w-full\">\n                    <SelectValue placeholder=\"Select a topic…\" />\n                  </SelectTrigger>\n                  <SelectContent alignItemWithTrigger={false}>\n                    {TOPICS.map((t) => (\n                      <SelectItem key={t} value={t}>\n                        {t}\n                      </SelectItem>\n                    ))}\n                  </SelectContent>\n                </Select>\n              </Field>\n\n              <Field>\n                <FieldLabel htmlFor=\"message\">Message</FieldLabel>\n                <Textarea\n                  id=\"message\"\n                  rows={6}\n                  className=\"min-h-32 resize-none\"\n                  placeholder=\"Tell us how we can help…\"\n                />\n              </Field>\n            </FieldGroup>\n          </CardContent>\n\n          <CardFooter className=\"flex flex-col items-stretch gap-4\">\n            <div className=\"flex items-center gap-2.5\">\n              <Checkbox id=\"consent\" name=\"consent\" />\n              <label\n                htmlFor=\"consent\"\n                className=\"text-xs leading-snug font-normal text-muted-foreground\"\n              >\n                I agree to the{\" \"}\n                <a\n                  href=\"#\"\n                  className=\"underline underline-offset-4 hover:text-foreground\"\n                >\n                  Privacy Policy\n                </a>\n                .\n              </label>\n            </div>\n            <Button type=\"submit\" className=\"w-full\">\n              <IconPlaceholder\n                lucide=\"Send\"\n                tabler=\"IconSend\"\n                hugeicons=\"MailSendIcon\"\n                phosphor=\"PaperPlane\"\n                remixicon=\"RiMailSendLine\"\n                data-icon=\"inline-start\"\n              />\n              Send Message\n            </Button>\n          </CardFooter>\n        </form>\n      </Card>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/contact-2.tsx"
    }
  ],
  "meta": {
    "height": "674px",
    "tier": "free"
  },
  "categories": [
    "contact"
  ],
  "type": "registry:block"
}