{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/switch-08","type":"registry:component","title":"Switch 8","description":"A switch with dynamic label that changes text based on toggle state (Yes/No)","registryDependencies":["label","switch"],"files":[{"path":"src/registry/new-york/components/switch/switch-08.tsx","content":"'use client'\n\nimport { useState } from 'react'\n\nimport { Label } from '@/registry/new-york/ui/label'\nimport { Switch } from '@/registry/new-york/ui/switch'\n\nconst SwitchToggleLabelDemo = () => {\n  const [checked, setChecked] = useState<boolean>(true)\n\n  return (\n    <div className='inline-flex items-center gap-2'>\n      <Switch id='toggle-label' checked={checked} onCheckedChange={setChecked} aria-label='Toggle switch label' />\n      <Label htmlFor='toggle-label' className='text-sm font-medium'>\n        {checked ? 'Yes' : 'No'}\n      </Label>\n    </div>\n  )\n}\n\nexport default SwitchToggleLabelDemo\n","type":"registry:component","target":"components/shadcn-studio/switch/switch-08.tsx"}]}