{
  "name": "switch",
  "type": "registry:ui",
  "dependencies": [
    "@vueuse/core",
    "reka-ui"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "ui/switch/Switch.vue",
      "type": "registry:ui",
      "content": "<script setup lang=\"ts\">\nimport type { SwitchRootEmits, SwitchRootProps } from \"reka-ui\"\nimport type { HTMLAttributes } from \"vue\"\nimport { reactiveOmit } from \"@vueuse/core\"\nimport {\n  SwitchRoot,\n  SwitchThumb,\n  useForwardPropsEmits,\n} from \"reka-ui\"\nimport { cn } from \"@/lib/utils\"\n\nconst props = withDefaults(defineProps<SwitchRootProps & {\n  class?: HTMLAttributes[\"class\"]\n  size?: \"sm\" | \"default\"\n}>(), {\n  size: \"default\",\n})\n\nconst emits = defineEmits<SwitchRootEmits>()\n\nconst delegatedProps = reactiveOmit(props, \"class\", \"size\")\n\nconst forwarded = useForwardPropsEmits(delegatedProps, emits)\n</script>\n\n<template>\n  <SwitchRoot\n    v-slot=\"slotProps\"\n    data-slot=\"switch\"\n    :data-size=\"size\"\n    v-bind=\"forwarded\"\n    :class=\"cn(\n      'cn-switch peer group/switch relative inline-flex items-center transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50',\n      props.class,\n    )\"\n  >\n    <SwitchThumb\n      data-slot=\"switch-thumb\"\n      class=\"cn-switch-thumb pointer-events-none block ring-0 transition-transform\"\n    >\n      <slot name=\"thumb\" v-bind=\"slotProps\" />\n    </SwitchThumb>\n  </SwitchRoot>\n</template>\n"
    },
    {
      "path": "ui/switch/index.ts",
      "type": "registry:ui",
      "content": "export { default as Switch } from \"./Switch.vue\"\n"
    }
  ]
}
