{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/switch-12","type":"registry:component","title":"Switch 12","description":"A switch with check and X icon indicators that change visibility based on toggle state","dependencies":["lucide-react"],"registryDependencies":["switch"],"files":[{"path":"src/registry/new-york/components/switch/switch-12.tsx","content":"import { CheckIcon, XIcon } from 'lucide-react'\n\nimport { Switch } from '@/registry/new-york/ui/switch'\n\nconst SwitchIconIndicatorDemo = () => {\n  return (\n    <div className='relative'>\n      <Switch\n        className='peer bg-input/50! [&_span]:bg-background! data-[size=default]:h-5.5 data-[size=default]:w-10 [&_span]:group-data-[size=default]/switch:size-5 [&_span]:data-[state=checked]:translate-x-4.5 [&_span]:data-[state=checked]:rtl:-translate-x-4.5'\n        aria-label='Switch with icon indicators'\n      />\n      <span className='peer-data-[state=checked]:text-muted-foreground/70 pointer-events-none absolute top-1 left-0.75'>\n        <CheckIcon className='size-3.5' aria-hidden='true' />\n      </span>\n      <span className='peer-data-[state=unchecked]:text-muted-foreground/70 pointer-events-none absolute top-1 right-0.75'>\n        <XIcon className='size-3.5' aria-hidden='true' />\n      </span>\n    </div>\n  )\n}\n\nexport default SwitchIconIndicatorDemo\n","type":"registry:component","target":"components/shadcn-studio/switch/switch-12.tsx"}]}