{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/switch-13","type":"registry:component","title":"Switch 13","description":"A switch with sliding check and X icon indicators that move with the toggle handle","dependencies":["lucide-react"],"registryDependencies":["switch"],"files":[{"path":"src/registry/new-york/components/switch/switch-13.tsx","content":"import { CheckIcon, XIcon } from 'lucide-react'\n\nimport { Switch } from '@/registry/new-york/ui/switch'\n\nconst SwitchPermanentIndicatorDemo = () => {\n  return (\n    <div className='relative'>\n      <Switch\n        className='peer [&_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-background pointer-events-none absolute top-1 left-0.75 transition-transform duration-300 peer-data-[state=unchecked]:invisible peer-data-[state=unchecked]:translate-x-full'>\n        <CheckIcon className='size-3.5' aria-hidden='true' />\n      </span>\n      <span className='pointer-events-none absolute top-1 right-0.75 transition-transform duration-300 peer-data-[state=checked]:invisible peer-data-[state=checked]:-translate-x-full'>\n        <XIcon className='size-3.5' aria-hidden='true' />\n      </span>\n    </div>\n  )\n}\n\nexport default SwitchPermanentIndicatorDemo\n","type":"registry:component","target":"components/shadcn-studio/switch/switch-13.tsx"}]}