{
  "$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{* Select — Select renders option children from Options, then manual children. *}\n{parameters\n  string $class = '',\n  ?string $id = null,\n  ?string $name = null,\n  string $value = '',\n  bool $multiple = false,\n  bool $required = false,\n  bool $disabled = false,\n  array $options = [],\n  ?string $ariaInvalid = null,\n  ?string $ariaDescribedBy = null,\n  array $attrs = [],\n  string $children = '',\n}\n<select n:attr=\"[\n  'class' => \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Classes::selectClasses(['class' => $class, 'id' => $id, 'name' => $name, 'value' => $value, 'multiple' => $multiple, 'required' => $required, 'disabled' => $disabled, 'ariaInvalid' => $ariaInvalid, 'ariaDescribedBy' => $ariaDescribedBy])),\n  'id' => \\UI8Kit\\Latte\\Rt::orNull($id),\n  'name' => \\UI8Kit\\Latte\\Rt::orNull($name),\n  'multiple' => $multiple,\n  'required' => $required,\n  'disabled' => $disabled,\n  'aria-invalid' => \\UI8Kit\\Latte\\Rt::orNull($ariaInvalid),\n  'aria-describedby' => \\UI8Kit\\Latte\\Rt::orNull($ariaDescribedBy),\n  ...\\UI8Kit\\Latte\\Rt::restAttrs($attrs, false, ['id', 'name', 'aria-invalid', 'aria-describedby']),\n]\">{foreach $options as $item}<option n:attr=\"[\n  'value' => ($item['value'] ?? ''),\n  'selected' => (($item['value'] ?? '') === $value),\n  'disabled' => ($item['disabled'] ?? false),\n]\">{=($item['label'] ?? '')}</option>{/foreach}{$children|noescape}</select>",
      "path": "ui/select/Select.latte",
      "target": "ui/select/Select.latte"
    },
    {
      "content": "{* Code generated by @ui8kit/codegen. DO NOT EDIT. *}\n{* SelectOptGroup — SelectOptGroup renders a native optgroup around option children. *}\n{parameters\n  ?string $label = null,\n  bool $disabled = false,\n  array $attrs = [],\n  string $children = '',\n}\n<optgroup n:attr=\"[\n  'label' => \\UI8Kit\\Latte\\Rt::orNull($label),\n  'disabled' => $disabled,\n  ...\\UI8Kit\\Latte\\Rt::restAttrs($attrs, false, ['label']),\n]\">{$children|noescape}</optgroup>",
      "path": "ui/select/SelectOptGroup.latte",
      "target": "ui/select/SelectOptGroup.latte"
    },
    {
      "content": "{* Code generated by @ui8kit/codegen. DO NOT EDIT. *}\n{* SelectOption — SelectOption renders a native option. *}\n{parameters\n  ?string $value = null,\n  bool $selected = false,\n  bool $disabled = false,\n  array $attrs = [],\n  string $children = '',\n}\n<option n:attr=\"[\n  'value' => $value,\n  'selected' => $selected,\n  'disabled' => $disabled,\n  ...\\UI8Kit\\Latte\\Rt::restAttrs($attrs),\n]\">{$children|noescape}</option>",
      "path": "ui/select/SelectOption.latte",
      "target": "ui/select/SelectOption.latte"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "latte",
      "primitive"
    ]
  },
  "name": "kit-select",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "latte",
  "title": "Kit Select",
  "type": "registry:ui"
}
