{
  "$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    Form: Form renders a native form element; method is whitelisted (get|post|dialog).\n    Props (p): Class (string), ID (string), Name (string), Action (string), Method (string), Enctype (string), NoValidate (bool), Autocomplete (string), Target (string), AriaLabel (string), AriaLabelledBy (string), AriaDescribedBy (string), Attrs (attrs), Children (children).\n    children: TRUSTED HTML printed with |safe — never pass unescaped user input.\n    Classes without rendering: form_classes(p) (no asChild in Jinja2). -#}\n<form\n  {%- with cls = form_classes(p) %}{%- if cls %} class=\"{{ cls }}\"{%- endif %}{%- endwith %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'id') %}{%- if ui_is_set_str(p['ID']) %} id=\"{{ p['ID'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'name') %}{%- if ui_is_set_str(p['Name']) %} name=\"{{ p['Name'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'action') %}{%- if ui_is_set_str(p['Action']) and ui_safe_url(p['Action']) != '' %} action=\"{{ p['Action'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'method') %}{%- if ui_is_set_str(ui_map_or(ui_def(p['Method'], ''), {'get': 'get', 'post': 'post', 'dialog': 'dialog'}, '', true)) %} method=\"{{ ui_map_or(ui_def(p['Method'], ''), {'get': 'get', 'post': 'post', 'dialog': 'dialog'}, '', true) }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'enctype') %}{%- if ui_is_set_str(p['Enctype']) %} enctype=\"{{ p['Enctype'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'novalidate') %}{%- if ui_def(p['NoValidate'], false) %} novalidate{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'autocomplete') %}{%- if ui_is_set_str(p['Autocomplete']) %} autocomplete=\"{{ p['Autocomplete'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'target') %}{%- if ui_is_set_str(p['Target']) %} target=\"{{ p['Target'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'aria-label') %}{%- if ui_is_set_str(p['AriaLabel']) %} aria-label=\"{{ p['AriaLabel'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'aria-labelledby') %}{%- if ui_is_set_str(p['AriaLabelledBy']) %} aria-labelledby=\"{{ p['AriaLabelledBy'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'aria-describedby') %}{%- if ui_is_set_str(p['AriaDescribedBy']) %} aria-describedby=\"{{ p['AriaDescribedBy'] }}\"{%- endif %}{%- endif %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {}), false, ['id', 'name', 'action', 'enctype', 'autocomplete', 'target', 'aria-label', 'aria-labelledby', 'aria-describedby']) }}\n>{{ children|default('', true)|safe }}</form>\n",
      "path": "ui/form/form.html.j2",
      "target": "ui/form/form.html.j2"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "jinja2",
      "primitive"
    ]
  },
  "name": "kit-form",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Kit Form",
  "type": "registry:ui"
}
