{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/dialog-24","type":"registry:component","title":"Dialog 24","description":"Profile edit dialog with slide-up animation from bottom","registryDependencies":["button","dialog","input","label"],"files":[{"path":"src/registry/new-york/components/dialog/dialog-24.tsx","content":"import { 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 { Input } from '@/registry/new-york/ui/input'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst DialogSlideToTopDemo = () => {\n  return (\n    <Dialog>\n      <form>\n        <DialogTrigger asChild>\n          <Button variant='outline'>Slide to top</Button>\n        </DialogTrigger>\n        <DialogContent className='data-[state=open]:zoom-in-100! data-[state=open]:slide-in-from-bottom-20 data-[state=open]:duration-600 sm:max-w-106.25'>\n          <DialogHeader>\n            <DialogTitle>Edit profile</DialogTitle>\n            <DialogDescription>Make changes to your profile here. Click save when you&apos;re done.</DialogDescription>\n          </DialogHeader>\n          <div className='grid gap-4'>\n            <div className='grid gap-3'>\n              <Label htmlFor='name-1'>Name</Label>\n              <Input id='name-1' name='name' defaultValue='Pedro Duarte' />\n            </div>\n            <div className='grid gap-3'>\n              <Label htmlFor='username-1'>Username</Label>\n              <Input id='username-1' name='username' defaultValue='@peduarte' />\n            </div>\n          </div>\n          <DialogFooter>\n            <DialogClose asChild>\n              <Button variant='outline'>Cancel</Button>\n            </DialogClose>\n            <Button type='submit'>Save changes</Button>\n          </DialogFooter>\n        </DialogContent>\n      </form>\n    </Dialog>\n  )\n}\n\nexport default DialogSlideToTopDemo\n","type":"registry:component","target":"components/shadcn-studio/dialog/dialog-24.tsx"}]}