{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Switch primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{* Code generated by @ui8kit/codegen. DO NOT EDIT. *}\n{* Switch — Switch renders button[type=button][role=switch]; children render the thumb. *}\n{parameters\n  string $class = '',\n  bool $checked = false,\n  bool $disabled = false,\n  ?string $id = null,\n  ?string $name = null,\n  ?string $value = null,\n  ?string $ariaLabel = null,\n  ?string $ariaLabelledBy = null,\n  array $attrs = [],\n  string $children = '',\n}\n<button n:attr=\"[\n  'type' => 'button',\n  'role' => 'switch',\n  'aria-checked' => \\UI8Kit\\Latte\\Rt::boolStr($checked),\n  'data-state' => \\UI8Kit\\Latte\\Rt::boolStr($checked),\n  'class' => \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Classes::switchClasses(['class' => $class, 'checked' => $checked, 'disabled' => $disabled, 'id' => $id, 'name' => $name, 'value' => $value, 'ariaLabel' => $ariaLabel, 'ariaLabelledBy' => $ariaLabelledBy])),\n  'disabled' => $disabled,\n  'id' => \\UI8Kit\\Latte\\Rt::orNull($id),\n  'name' => \\UI8Kit\\Latte\\Rt::orNull($name),\n  'value' => $value,\n  'aria-label' => \\UI8Kit\\Latte\\Rt::orNull($ariaLabel),\n  'aria-labelledby' => \\UI8Kit\\Latte\\Rt::orNull($ariaLabelledBy),\n  ...\\UI8Kit\\Latte\\Rt::restAttrs($attrs, false, ['id', 'name', 'aria-label', 'aria-labelledby']),\n]\">{$children|noescape}</button>",
      "path": "ui/switch/Switch.latte",
      "target": "ui/switch/Switch.latte"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "latte",
      "primitive"
    ]
  },
  "name": "kit-switch",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "latte",
  "title": "Kit Switch",
  "type": "registry:ui"
}
