{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Switch primitive",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT. -->\n<!-- Switch: Switch + recipe switch. -->\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport Prim from \"../kit/ui/switch/Switch.vue\";\nimport { cn } from \"../kit/utils\";\nimport { rc } from \"./recipes\";\n\ndefineOptions({ name: \"Switch\", inheritAttrs: false });\nconst props = defineProps<{ \"size\"?: string | number }>();\nconst attrs = useAttrs();\nconst rest = computed(() => {\n  const { class: _class, ...r } = attrs;\n  return r;\n});\nconst cls = computed(() => cn(rc(\"switch\", { \"size\": props[\"size\"] }), attrs.class as string | undefined));\nconst tagValue = computed(() => \"\");\n</script>\n\n<template>\n  <Prim :class=\"cls\" v-bind=\"rest\" />\n</template>\n",
      "path": "compose/Switch.vue",
      "target": "compose/Switch.vue"
    }
  ],
  "meta": {
    "category": "primitives",
    "kind": "primitive",
    "tags": [
      "vue",
      "primitive"
    ]
  },
  "name": "switch",
  "registryDependencies": [
    "kit-switch",
    "recipes",
    "utils"
  ],
  "runtime": "vue",
  "title": "Switch",
  "type": "registry:ui"
}
