{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/dialog-04","type":"registry:component","title":"Dialog 4","description":"Scrollable dialog with long content and scroll area for product information","dependencies":["lucide-react"],"registryDependencies":["button","dialog","scroll-area"],"files":[{"path":"src/registry/new-york/components/dialog/dialog-04.tsx","content":"import { ChevronLeftIcon } from 'lucide-react'\n\nimport { Button } from '@/registry/new-york/ui/button'\nimport {\n  Dialog,\n  DialogClose,\n  DialogContent,\n  DialogDescription,\n  DialogFooter,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger\n} from '@/registry/new-york/ui/dialog'\nimport { ScrollArea } from '@/registry/new-york/ui/scroll-area'\n\nconst DialogScrollableDemo = () => {\n  return (\n    <Dialog>\n      <DialogTrigger asChild>\n        <Button variant='outline'>Scrollable Dialog</Button>\n      </DialogTrigger>\n      <DialogContent className='flex max-h-[min(600px,80vh)] flex-col gap-0 p-0 sm:max-w-md'>\n        <ScrollArea className='flex flex-col overflow-hidden'>\n          <DialogHeader className='contents space-y-0 text-left'>\n            <DialogTitle className='px-6 pt-6'>Product Information</DialogTitle>\n            <DialogDescription asChild>\n              <div className='p-6'>\n                <div className='[&_strong]:text-foreground space-y-4 [&_strong]:font-semibold'>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Product Name:</strong> SuperTech 2000\n                    </p>\n                    <p>\n                      The SuperTech 2000 is a high-performance device designed for tech enthusiasts and professionals\n                      alike, offering superior functionality and innovative features.\n                    </p>\n                  </div>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Specifications:</strong>\n                    </p>\n                    <ul>\n                      <li>Processor: 3.6GHz Octa-Core</li>\n                      <li>Memory: 16GB RAM</li>\n                      <li>Storage: 1TB SSD</li>\n                      <li>Display: 15.6&rdquo; 4K UHD</li>\n                      <li>Battery Life: 12 hours</li>\n                      <li>Weight: 2.1kg</li>\n                    </ul>\n                  </div>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Key Features:</strong>\n                    </p>\n                    <ul>\n                      <li>Ultra-fast processing speed for intensive tasks</li>\n                      <li>Long battery life, perfect for on-the-go professionals</li>\n                      <li>Sleek and portable design</li>\n                      <li>Advanced cooling system</li>\n                      <li>Excellent build quality for durability</li>\n                    </ul>\n                  </div>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Price:</strong>\n                    </p>\n                    <p>$2,499.99 (Includes 1-year warranty)</p>\n                  </div>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Customer Reviews:</strong>\n                    </p>\n                    <p>\n                      &rdquo;Absolutely fantastic device! The performance is exceptional, and it handles all of my\n                      design software without any lag.&rdquo; - John D.\n                    </p>\n                    <p>\n                      &rdquo;Best purchase I&apos;ve made in years. The display quality is stunning, and the battery\n                      lasts all day.&rdquo; - Sarah L.\n                    </p>\n                    <p>\n                      &rdquo;The SuperTech 2000 is a game-changer in the tech industry. Worth every penny!&rdquo; - Emma\n                      W.\n                    </p>\n                  </div>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Return Policy:</strong>\n                    </p>\n                    <p>\n                      If you&apos;re not satisfied with your purchase, we offer a 30-day return policy. Return the\n                      product within 30 days of purchase for a full refund.\n                    </p>\n                  </div>\n                  <div className='space-y-1'>\n                    <p>\n                      <strong>Warranty:</strong>\n                    </p>\n                    <p>\n                      Comes with a standard 1-year warranty covering defects in materials and workmanship. Extended\n                      warranty plans are available.\n                    </p>\n                  </div>\n                </div>\n              </div>\n            </DialogDescription>\n          </DialogHeader>\n          <DialogFooter className='px-6 pb-6 sm:justify-end'>\n            <DialogClose asChild>\n              <Button variant='outline'>\n                <ChevronLeftIcon />\n                Back\n              </Button>\n            </DialogClose>\n            <Button type='button'>Read More</Button>\n          </DialogFooter>\n        </ScrollArea>\n      </DialogContent>\n    </Dialog>\n  )\n}\n\nexport default DialogScrollableDemo\n","type":"registry:component","target":"components/shadcn-studio/dialog/dialog-04.tsx"}]}