{
  "$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{# @param class (string) #}\n{# @param type (string) #}\n{# @param form (string) #}\n{# @param href (string) #}\n{# @param disabled (bool) #}\n{# @param pressed (bool) #}\n{# @param expanded (bool) #}\n{# @param ariaLabel (string) #}\n{# @param ariaPressed (string) #}\n{# @param ariaExpanded (string) #}\n{# @param ariaControls (string) #}\n{# @param attrs (attrs) #}\n{# @param children (children) #}\n{% set class = class|default('') %}\n{% set type = type|default('') %}\n{% set form = form ?? null %}\n{% set href = href|default('') %}\n{% set disabled = disabled|default(false) %}\n{% set pressed = pressed ?? null %}\n{% set expanded = expanded ?? null %}\n{% set ariaLabel = ariaLabel ?? null %}\n{% set ariaPressed = ariaPressed ?? null %}\n{% set ariaExpanded = ariaExpanded ?? null %}\n{% set ariaControls = ariaControls ?? null %}\n{% set attrs = attrs|default([]) %}\n{% set children = children|default('') %}\n{% if ui8kit_is_set_str(href) %}<a{{ ui8kit_attrs({'href': ui8kit_or_null(ui8kit_safe_url(href)), 'class': ui8kit_or_null(ui8kit_classes('buttonClasses', {'class': class, 'type': type, 'form': form, 'href': href, 'disabled': disabled, 'pressed': pressed, 'expanded': expanded, 'ariaLabel': ariaLabel, 'ariaPressed': ariaPressed, 'ariaExpanded': ariaExpanded, 'ariaControls': ariaControls})), 'aria-label': ui8kit_or_null(ariaLabel), 'aria-pressed': ui8kit_or_null(ariaPressed), 'aria-expanded': (ui8kit_or_null(ariaExpanded) ?? ui8kit_or_null(ui8kit_opt_bool_str(expanded))), 'aria-controls': ui8kit_or_null(ariaControls), 'aria-disabled': (disabled ? 'true' : null), 'tabindex': (disabled ? (-1 ~ '') : null)}, attrs, false, ['aria-label', 'aria-pressed', 'aria-expanded', 'aria-controls']) }}>{{ children|raw }}</a>{% else %}<button{{ ui8kit_attrs({'type': ui8kit_one_of_or(type, 'button', ['submit', 'reset']), 'class': ui8kit_or_null(ui8kit_classes('buttonClasses', {'class': class, 'type': type, 'form': form, 'href': href, 'disabled': disabled, 'pressed': pressed, 'expanded': expanded, 'ariaLabel': ariaLabel, 'ariaPressed': ariaPressed, 'ariaExpanded': ariaExpanded, 'ariaControls': ariaControls})), 'disabled': disabled, 'form': ui8kit_or_null(form), 'aria-label': ui8kit_or_null(ariaLabel), 'aria-pressed': (ui8kit_or_null(ariaPressed) ?? ui8kit_or_null(ui8kit_opt_bool_str(pressed))), 'aria-expanded': (ui8kit_or_null(ariaExpanded) ?? ui8kit_or_null(ui8kit_opt_bool_str(expanded))), 'aria-controls': ui8kit_or_null(ariaControls)}, attrs, false, ['form', 'aria-label', 'aria-pressed', 'aria-expanded', 'aria-controls']) }}>{{ children|raw }}</button>{% endif %}\n",
      "path": "ui/button/Button.html.twig",
      "target": "ui/button/Button.html.twig"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "twig",
      "primitive"
    ]
  },
  "name": "kit-button",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "twig",
  "title": "Kit Button",
  "type": "registry:ui"
}
