{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Text primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by @ui8kit/codegen. DO NOT EDIT. -->\n<!--\n  Text renders the requested text element (default p).\n-->\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport { textClasses } from \"./text.shared\";\nimport { safeRest } from \"../../utils/expr\";\nimport { resolveTag, TagGroup } from \"../../utils/tags\";\n\ndefineOptions({ name: \"Text\", inheritAttrs: false });\n\nconst props = defineProps<{\n  tag?: \"p\" | \"span\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"blockquote\" | \"figcaption\" | \"pre\" | \"code\" | \"small\" | \"strong\" | \"em\" | \"time\" | \"legend\" | \"del\" | \"ins\";\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(() => textClasses({ className: callerClass.value }));\nconst resolvedTagValue = computed(() => resolveTag(props.tag, \"p\", TagGroup.Text));\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/text/Text.vue",
      "target": "kit/ui/text/Text.vue"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.text — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Text renders the requested text element (default p). */\nexport type TextBaseProps = {\n  tag?: \"p\" | \"span\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"blockquote\" | \"figcaption\" | \"pre\" | \"code\" | \"small\" | \"strong\" | \"em\" | \"time\" | \"legend\" | \"del\" | \"ins\";\n};\n\nexport type TextClassesInput = {\n  className?: string;\n};\n\n/** Compose Text classes without rendering — the cross-runtime `asChild` substitute. */\nexport function textClasses(input: TextClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/text/text.shared.ts",
      "target": "kit/ui/text/text.shared.ts"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "vue",
      "primitive"
    ]
  },
  "name": "kit-text",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "vue",
  "title": "Kit Text",
  "type": "registry:ui"
}
