{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dialog-05",
  "title": "Dialog with fixed header",
  "description": "The title stays in place while the questions scroll under it.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/dialog.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/dialog/dialog-05.tsx",
      "content": "import { Button } from '@/registry/ndeko/ui/button';\nimport {\n  Dialog,\n  DialogClose,\n  DialogContent,\n  DialogDescription,\n  DialogFooter,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger,\n} from '@/registry/ndeko/ui/dialog';\n\nconst FAQ_ITEMS = [\n  {\n    question: 'Creating an account',\n    answer:\n      'Sign up with your work email and open the link we send you. You can also join with Google if your company uses it.',\n  },\n  {\n    question: 'Resetting your password',\n    answer:\n      'Choose Forgot password on the sign-in page and follow the link in the email. The link works for 30 minutes.',\n  },\n  {\n    question: 'Plans and billing',\n    answer:\n      'The Free plan covers up to 3 projects. The Team plan adds unlimited projects, guests and version history, billed per member each month.',\n  },\n  {\n    question: 'Getting help',\n    answer:\n      'Write to support from the help menu at any time. We answer within one business day.',\n  },\n  {\n    question: 'Keeping your data safe',\n    answer:\n      'Data is encrypted in transit and at rest. Admins can require single sign-on and see a log of every sign-in.',\n  },\n  {\n    question: 'Supported devices',\n    answer:\n      'The web app runs in any current browser. Desktop apps exist for macOS and Windows, mobile apps for iOS and Android.',\n  },\n  {\n    question: 'Cancelling a subscription',\n    answer:\n      'Cancel from Settings, then Billing. Your workspace stays on the paid plan until the end of the period you paid for.',\n  },\n  {\n    question: 'Payment methods',\n    answer:\n      'We accept major credit cards, and bank transfers for yearly plans. Invoices go to the billing email every month.',\n  },\n  {\n    question: 'Exporting your work',\n    answer:\n      'Export any project as CSV or JSON from its settings. Exports include tasks, comments and links to attachments.',\n  },\n];\n\nconst SCROLL_BODY =\n  'flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto px-6 pt-5 pb-6 [mask-image:linear-gradient(to_bottom,transparent,black_1.25rem,black_calc(100%_-_1.25rem),transparent)]';\n\nexport default function Dialog05() {\n  return (\n    <Dialog>\n      <DialogTrigger render={<Button variant='outline' />}>\n        Open FAQ\n      </DialogTrigger>\n      <DialogContent\n        animateSize={false}\n        className='h-[min(640px,80dvh)] overflow-hidden p-0'\n        contentClassName='h-full gap-0'\n      >\n        <DialogHeader className='px-6 pt-6 pr-12'>\n          <DialogTitle>Frequently asked questions</DialogTitle>\n        </DialogHeader>\n        <div className={SCROLL_BODY}>\n          <DialogDescription\n            render={<div />}\n            className='flex flex-col gap-4 leading-relaxed'\n          >\n            {FAQ_ITEMS.map((item) => (\n              <section key={item.question} className='flex flex-col gap-1'>\n                <h3 className='text-foreground font-medium'>{item.question}</h3>\n                <p>{item.answer}</p>\n              </section>\n            ))}\n          </DialogDescription>\n          <DialogFooter>\n            <DialogClose render={<Button size='lg' />}>Close</DialogClose>\n          </DialogFooter>\n        </div>\n      </DialogContent>\n    </Dialog>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "dialog"
  ],
  "type": "registry:component"
}