{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Button primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{* Code generated by @ui8kit/codegen. DO NOT EDIT. *}\n{* Button — Button renders a button element, or an anchor when Href is set. *}\n{parameters\n  string $class = '',\n  string $type = '',\n  ?string $form = null,\n  string $href = '',\n  bool $disabled = false,\n  ?bool $pressed = null,\n  ?bool $expanded = null,\n  ?string $ariaLabel = null,\n  ?string $ariaPressed = null,\n  ?string $ariaExpanded = null,\n  ?string $ariaControls = null,\n  array $attrs = [],\n  string $children = '',\n}\n{if \\UI8Kit\\Latte\\Rt::isSetStr($href)}<a n:attr=\"[\n  'href' => \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Rt::safeUrl($href)),\n  'class' => \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Classes::buttonClasses(['class' => $class, 'type' => $type, 'form' => $form, 'href' => $href, 'disabled' => $disabled, 'pressed' => $pressed, 'expanded' => $expanded, 'ariaLabel' => $ariaLabel, 'ariaPressed' => $ariaPressed, 'ariaExpanded' => $ariaExpanded, 'ariaControls' => $ariaControls])),\n  'aria-label' => \\UI8Kit\\Latte\\Rt::orNull($ariaLabel),\n  'aria-pressed' => \\UI8Kit\\Latte\\Rt::orNull($ariaPressed),\n  'aria-expanded' => (\\UI8Kit\\Latte\\Rt::orNull($ariaExpanded) ?? \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Rt::optBoolStr($expanded))),\n  'aria-controls' => \\UI8Kit\\Latte\\Rt::orNull($ariaControls),\n  'aria-disabled' => ($disabled ? 'true' : null),\n  'tabindex' => ($disabled ? ((string) -1) : null),\n  ...\\UI8Kit\\Latte\\Rt::restAttrs($attrs, false, ['aria-label', 'aria-pressed', 'aria-expanded', 'aria-controls']),\n]\">{$children|noescape}</a>{else}<button n:attr=\"[\n  'type' => \\UI8Kit\\Latte\\Rt::oneOfOr($type, 'button', ['submit', 'reset']),\n  'class' => \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Classes::buttonClasses(['class' => $class, 'type' => $type, 'form' => $form, 'href' => $href, 'disabled' => $disabled, 'pressed' => $pressed, 'expanded' => $expanded, 'ariaLabel' => $ariaLabel, 'ariaPressed' => $ariaPressed, 'ariaExpanded' => $ariaExpanded, 'ariaControls' => $ariaControls])),\n  'disabled' => $disabled,\n  'form' => \\UI8Kit\\Latte\\Rt::orNull($form),\n  'aria-label' => \\UI8Kit\\Latte\\Rt::orNull($ariaLabel),\n  'aria-pressed' => (\\UI8Kit\\Latte\\Rt::orNull($ariaPressed) ?? \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Rt::optBoolStr($pressed))),\n  'aria-expanded' => (\\UI8Kit\\Latte\\Rt::orNull($ariaExpanded) ?? \\UI8Kit\\Latte\\Rt::orNull(\\UI8Kit\\Latte\\Rt::optBoolStr($expanded))),\n  'aria-controls' => \\UI8Kit\\Latte\\Rt::orNull($ariaControls),\n  ...\\UI8Kit\\Latte\\Rt::restAttrs($attrs, false, ['form', 'aria-label', 'aria-pressed', 'aria-expanded', 'aria-controls']),\n]\">{$children|noescape}</button>{/if}",
      "path": "ui/button/Button.latte",
      "target": "ui/button/Button.latte"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "latte",
      "primitive"
    ]
  },
  "name": "kit-button",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "latte",
  "title": "Kit Button",
  "type": "registry:ui"
}
