{
  "$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 lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n\n  export type FormProps = {\n    method?: \"get\" | \"post\" | \"dialog\";\n    novalidate?: boolean;\n    class?: string;\n    children?: Snippet;\n    [key: string]: unknown;\n  };\n</script>\n\n<script lang=\"ts\">\n  import { formClasses } from \"./form.shared\";\n  import { oneOfOrLower, orUndef, safeRest } from \"../../utils/expr\";\n\n  let {\n    method,\n    novalidate: noValidate,\n    class: className,\n    children,\n    ...rawRest\n  }: FormProps = $props();\n\n  const rest = $derived(safeRest(rawRest, { blank: [\"id\", \"name\", \"action\", \"enctype\", \"autocomplete\", \"target\", \"aria-label\", \"aria-labelledby\", \"aria-describedby\"] }));\n  const cls = $derived(formClasses({ className }));\n</script>\n\n<form {...(cls ? { class: cls } : {})} method={orUndef(oneOfOrLower(method, \"\", \"get\", \"post\", \"dialog\"))} novalidate={noValidate || undefined} {...rest}>\n  {@render children?.()}\n</form>\n",
      "path": "kit/ui/form/Form.svelte",
      "target": "kit/ui/form/Form.svelte"
    },
    {
      "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": [
      "svelte",
      "primitive"
    ]
  },
  "name": "kit-form",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "svelte",
  "title": "Kit Form",
  "type": "registry:ui"
}
