{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Select primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    SelectOptGroup: SelectOptGroup renders a native optgroup around option children.\n    Props (p): Label (string), Disabled (bool), Attrs (attrs), Children (children).\n    children: TRUSTED HTML printed with |safe — never pass unescaped user input.\n-#}\n<optgroup\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'label') %}{%- if ui_is_set_str(p['Label']) %} label=\"{{ p['Label'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'disabled') %}{%- if ui_def(p['Disabled'], false) %} disabled{%- endif %}{%- endif %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {}), false, ['label']) }}\n>{{ children|default('', true)|safe }}</optgroup>\n",
      "path": "ui/select/select-opt-group.html.j2",
      "target": "ui/select/select-opt-group.html.j2"
    },
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    SelectOption: SelectOption renders a native option.\n    Props (p): Value (string), Selected (bool), Disabled (bool), Attrs (attrs), Children (children).\n    children: TRUSTED HTML printed with |safe — never pass unescaped user input.\n-#}\n<option\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'value') %}{%- if p['Value'] is defined and p['Value'] is not none %} value=\"{{ p['Value'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'selected') %}{%- if ui_def(p['Selected'], false) %} selected{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'disabled') %}{%- if ui_def(p['Disabled'], false) %} disabled{%- endif %}{%- endif %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {})) }}\n>{{ children|default('', true)|safe }}</option>\n",
      "path": "ui/select/select-option.html.j2",
      "target": "ui/select/select-option.html.j2"
    },
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    Select: Select renders option children from Options, then manual children.\n    Props (p): Class (string), ID (string), Name (string), Value (string), Multiple (bool), Required (bool), Disabled (bool), Options (SelectOptionItem[]), AriaInvalid (string), AriaDescribedBy (string), Attrs (attrs), Children (children).\n    children: TRUSTED HTML printed with |safe — never pass unescaped user input.\n    Classes without rendering: select_classes(p) (no asChild in Jinja2). -#}\n<select\n  {%- with cls = select_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'], {}), 'multiple') %}{%- if ui_def(p['Multiple'], false) %} multiple{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'required') %}{%- if ui_def(p['Required'], false) %} required{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'disabled') %}{%- if ui_def(p['Disabled'], false) %} disabled{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'aria-invalid') %}{%- if ui_is_set_str(p['AriaInvalid']) %} aria-invalid=\"{{ p['AriaInvalid'] }}\"{%- 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', 'aria-invalid', 'aria-describedby']) }}\n>{%- for item in ui_def(p['Options'], []) %}<option\n  value=\"{{ ui_field(item, 'Value', '') }}\"\n  {%- if ui_eq(ui_field(item, 'Value', ''), ui_def(p['Value'], '')) %} selected{%- endif %}\n  {%- if ui_truthy(ui_field(item, 'Disabled', false)) %} disabled{%- endif %}\n>{{ ui_field(item, 'Label', '') }}</option>{%- endfor %}{{ children|default('', true)|safe }}</select>\n",
      "path": "ui/select/select.html.j2",
      "target": "ui/select/select.html.j2"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "jinja2",
      "primitive"
    ]
  },
  "name": "kit-select",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Kit Select",
  "type": "registry:ui"
}
