{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/switch-15","type":"registry:component","title":"Switch 15","description":"A switch integrated within a card layout with database icon for backup settings","dependencies":["lucide-react"],"registryDependencies":["label","switch"],"files":[{"path":"src/registry/new-york/components/switch/switch-15.tsx","content":"import { useId } from 'react'\n\nimport { DatabaseIcon } from 'lucide-react'\n\nimport { Label } from '@/registry/new-york/ui/label'\nimport { Switch } from '@/registry/new-york/ui/switch'\n\nconst SwitchCardDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='border-input has-data-[state=checked]:border-primary/50 relative flex w-full items-start gap-2 rounded-md border p-4 shadow-xs outline-none'>\n      <Switch\n        id={id}\n        size='sm'\n        className='order-1 after:absolute after:inset-0'\n        aria-describedby={`${id}-description`}\n      />\n      <div className='flex grow items-center gap-3'>\n        <DatabaseIcon />\n        <div className='grid grow gap-2'>\n          <Label htmlFor={id}>Backup</Label>\n          <p id={`${id}-description`} className='text-muted-foreground text-xs'>\n            Backup every file from your project.\n          </p>\n        </div>\n      </div>\n    </div>\n  )\n}\n\nexport default SwitchCardDemo\n","type":"registry:component","target":"components/shadcn-studio/switch/switch-15.tsx"}]}