{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/dialog-13","type":"registry:component","title":"Dialog 13","description":"Sign up dialog with gradient background and terms acceptance checkbox","registryDependencies":["button","checkbox","dialog","input","label"],"files":[{"path":"src/registry/new-york/components/dialog/dialog-13.tsx","content":"import { useId } from 'react'\n\nimport { Button } from '@/registry/new-york/ui/button'\nimport { Checkbox } from '@/registry/new-york/ui/checkbox'\nimport {\n  Dialog,\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 DialogSignUpDemo = () => {\n  const id = useId()\n\n  return (\n    <Dialog>\n      <form>\n        <DialogTrigger asChild>\n          <Button variant='outline'>Sign Up</Button>\n        </DialogTrigger>\n        <DialogContent className='to-card bg-linear-to-b from-green-100 to-40% bg-size-[100%_101%] sm:max-w-sm dark:from-green-900'>\n          <DialogHeader className='items-center'>\n            <DialogTitle>Sign Up</DialogTitle>\n            <DialogDescription>Start your 60-day free trial now.</DialogDescription>\n          </DialogHeader>\n          <form className='flex flex-col gap-4'>\n            <div className='grid grid-cols-2 gap-4'>\n              <div className='grid gap-3'>\n                <Label htmlFor='first-name'>First Name</Label>\n                <Input id='first-name' name='firstname' placeholder='John' />\n              </div>\n              <div className='grid gap-3'>\n                <Label htmlFor='last-name'>Last Name</Label>\n                <Input id='last-name' name='lastname' placeholder='Doe' />\n              </div>\n            </div>\n            <div className='grid gap-3'>\n              <Label htmlFor='email'>Email</Label>\n              <Input type='email' id='email' name='useremail' placeholder='example@gmail.com' />\n            </div>\n            <div className='grid gap-3'>\n              <Label htmlFor='password'>Password</Label>\n              <Input type='password' id='password' name='userpassword' placeholder='Password' />\n            </div>\n            <div className='flex items-center gap-2'>\n              <Checkbox\n                id={id}\n                className='focus-visible:ring-green-600/20 data-[state=checked]:border-green-600 data-[state=checked]:bg-green-600 dark:text-white dark:focus-visible:ring-green-400/40 dark:data-[state=checked]:border-green-400 dark:data-[state=checked]:bg-green-400'\n                defaultChecked\n              />\n              <Label htmlFor={id} className='gap-1'>\n                I agree with\n                <a href='#' className='underline hover:no-underline'>\n                  condition\n                </a>\n                and\n                <a href='#' className='underline hover:no-underline'>\n                  privacy policy\n                </a>\n              </Label>\n            </div>\n          </form>\n          <DialogFooter className='pt-4 sm:flex-col'>\n            <Button className='bg-green-600 text-white hover:bg-green-600 focus-visible:ring-green-600 dark:bg-green-400 dark:hover:bg-green-400 dark:focus-visible:ring-green-400'>\n              Start your trial\n            </Button>\n            <div className='before:bg-border after:bg-border flex items-center gap-4 before:h-px before:flex-1 after:h-px after:flex-1'>\n              <span className='text-muted-foreground text-xs'>Or</span>\n            </div>\n            <Button variant='outline'>\n              <img\n                src='https://cdn.shadcnstudio.com/ss-assets/brand-logo/google-icon.png?width=20&height=20&format=auto'\n                alt='Google Icon'\n                className='size-5'\n              />\n              <span className='flex justify-center'>Continue with Google</span>\n            </Button>\n          </DialogFooter>\n        </DialogContent>\n      </form>\n    </Dialog>\n  )\n}\n\nexport default DialogSignUpDemo\n","type":"registry:component","target":"components/shadcn-studio/dialog/dialog-13.tsx"}]}