{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Form primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by @ui8kit/codegen. DO NOT EDIT. -->\n<!--\n  Form renders a native form element; method is whitelisted (get|post|dialog).\n-->\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport { formClasses } from \"./form.shared\";\nimport { oneOfOrLower, orUndef, safeRest } from \"../../utils/expr\";\n\ndefineOptions({ name: \"Form\", inheritAttrs: false });\n\nconst props = defineProps<{\n  method?: \"get\" | \"post\" | \"dialog\";\n  noValidate?: boolean;\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, { blank: [\"id\", \"name\", \"action\", \"enctype\", \"autocomplete\", \"target\", \"aria-label\", \"aria-labelledby\", \"aria-describedby\"] });\n});\nconst cls = computed(() => formClasses({ className: callerClass.value }));\n</script>\n\n<template>\n  <form :class=\"cls || undefined\" :method=\"orUndef(oneOfOrLower(props.method, '', 'get', 'post', 'dialog'))\" :novalidate=\"props.noValidate || undefined\" v-bind=\"restAttrs\">\n    <slot />\n  </form>\n</template>\n",
      "path": "kit/ui/form/Form.vue",
      "target": "kit/ui/form/Form.vue"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.form — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Form renders a native form element; method is whitelisted (get|post|dialog). */\nexport type FormBaseProps = {\n  method?: \"get\" | \"post\" | \"dialog\";\n  noValidate?: boolean;\n};\n\nexport type FormClassesInput = {\n  className?: string;\n};\n\n/** Compose Form classes without rendering — the cross-runtime `asChild` substitute. */\nexport function formClasses(input: FormClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/form/form.shared.ts",
      "target": "kit/ui/form/form.shared.ts"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "vue",
      "primitive"
    ]
  },
  "name": "kit-form",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "vue",
  "title": "Kit Form",
  "type": "registry:ui"
}
