{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dialog-17",
  "title": "Long form, sticky footer",
  "description": "Many fields in scroll; footer-only sticky.",
  "dependencies": [],
  "registryDependencies": [
    "dialog",
    "button",
    "input",
    "field",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/patterns/dialog/dialog-17.tsx",
      "content": "import { Button } from '@/components/ui/button'\nimport {\n  Dialog,\n  DialogClose,\n  DialogContent,\n  DialogDescription,\n  DialogFooter,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger,\n} from '@/components/ui/dialog'\nimport { Field, FieldGroup, FieldLabel } from '@/components/ui/field'\nimport { Input } from '@/components/ui/input'\nimport { Textarea } from '@/components/ui/textarea'\n\nexport function Dialog17() {\n  return (\n    <Dialog>\n      <DialogTrigger render={<Button variant=\"outline\">Create event</Button>} />\n      <DialogContent className=\"flex flex-col gap-0 overflow-hidden p-0 sm:max-w-md\">\n        <DialogHeader className=\"px-6 pt-6\">\n          <DialogTitle>Create event</DialogTitle>\n          <DialogDescription>\n            Header scrolls away; footer stays pinned while you fill the form.\n          </DialogDescription>\n        </DialogHeader>\n        <div className=\"max-h-[min(50vh,16rem)] overflow-y-auto px-6 pb-4\">\n          <FieldGroup>\n            <Field>\n              <FieldLabel htmlFor=\"dialog-17-title\">Title</FieldLabel>\n              <Input id=\"dialog-17-title\" placeholder=\"Team sync\" />\n            </Field>\n            <Field>\n              <FieldLabel htmlFor=\"dialog-17-date\">Date</FieldLabel>\n              <Input id=\"dialog-17-date\" type=\"date\" />\n            </Field>\n            <Field>\n              <FieldLabel htmlFor=\"dialog-17-start\">Start time</FieldLabel>\n              <Input id=\"dialog-17-start\" type=\"time\" />\n            </Field>\n            <Field>\n              <FieldLabel htmlFor=\"dialog-17-end\">End time</FieldLabel>\n              <Input id=\"dialog-17-end\" type=\"time\" />\n            </Field>\n            <Field>\n              <FieldLabel htmlFor=\"dialog-17-location\">Location</FieldLabel>\n              <Input id=\"dialog-17-location\" placeholder=\"Conference room A\" />\n            </Field>\n            <Field>\n              <FieldLabel htmlFor=\"dialog-17-desc\">Description</FieldLabel>\n              <Textarea\n                id=\"dialog-17-desc\"\n                placeholder=\"Agenda, prep materials, or links...\"\n                rows={3}\n              />\n            </Field>\n          </FieldGroup>\n        </div>\n        <DialogFooter className=\"bg-muted/30 border-t px-6 py-4\">\n          <DialogClose render={<Button variant=\"outline\">Cancel</Button>} />\n          <Button>Create event</Button>\n        </DialogFooter>\n      </DialogContent>\n    </Dialog>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/flx/patterns/dialog/dialog-17.tsx"
    }
  ],
  "type": "registry:block"
}