{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Box primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by @ui8kit/codegen. DO NOT EDIT. -->\n<!--\n  Box renders the requested structural HTML element (default div).\n-->\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport { boxClasses } from \"./box.shared\";\nimport { safeRest } from \"../../utils/expr\";\nimport { resolveTag, TagGroup } from \"../../utils/tags\";\n\ndefineOptions({ name: \"Box\", inheritAttrs: false });\n\nconst props = defineProps<{\n  tag?: \"div\" | \"section\" | \"article\" | \"aside\" | \"header\" | \"footer\" | \"main\" | \"nav\" | \"figure\" | \"search\" | \"ul\" | \"ol\" | \"li\" | \"dl\" | \"dt\" | \"dd\" | \"fieldset\" | \"table\" | \"thead\" | \"tbody\" | \"tfoot\" | \"tr\" | \"th\" | \"td\" | \"caption\" | \"colgroup\" | \"col\";\n}>();\n\nconst attrs = useAttrs();\nconst callerClass = computed(() => attrs.class as string | undefined);\nconst restAttrs = computed(() => {\n  const { class: _class, ...restEntries } = attrs;\n  return safeRest(restEntries);\n});\nconst cls = computed(() => boxClasses({ className: callerClass.value }));\nconst resolvedTagValue = computed(() => resolveTag(props.tag, \"div\", TagGroup.Box));\n</script>\n\n<template>\n  <component :is=\"resolvedTagValue\" :class=\"cls || undefined\" v-bind=\"restAttrs\">\n    <slot />\n  </component>\n</template>\n",
      "path": "kit/ui/box/Box.vue",
      "target": "kit/ui/box/Box.vue"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.box — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Box renders the requested structural HTML element (default div). */\nexport type BoxBaseProps = {\n  tag?: \"div\" | \"section\" | \"article\" | \"aside\" | \"header\" | \"footer\" | \"main\" | \"nav\" | \"figure\" | \"search\" | \"ul\" | \"ol\" | \"li\" | \"dl\" | \"dt\" | \"dd\" | \"fieldset\" | \"table\" | \"thead\" | \"tbody\" | \"tfoot\" | \"tr\" | \"th\" | \"td\" | \"caption\" | \"colgroup\" | \"col\";\n};\n\nexport type BoxClassesInput = {\n  className?: string;\n};\n\n/** Compose Box classes without rendering — the cross-runtime `asChild` substitute. */\nexport function boxClasses(input: BoxClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/box/box.shared.ts",
      "target": "kit/ui/box/box.shared.ts"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "vue",
      "primitive"
    ]
  },
  "name": "kit-box",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "vue",
  "title": "Kit Box",
  "type": "registry:ui"
}
