{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Dialog primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    Dialog: Dialog renders a native dialog element.\n    Props (p): Class (string), ID (string), Open (bool), AriaLabelledBy (string), AriaDescribedBy (string), AriaLabel (string), Attrs (attrs), Children (children).\n    children: TRUSTED HTML printed with |safe — never pass unescaped user input.\n    Classes without rendering: dialog_classes(p) (no asChild in Jinja2). -#}\n<dialog\n  {%- with cls = dialog_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'], {}), 'open') %}{%- if ui_def(p['Open'], false) %} open{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'aria-labelledby') %}{%- if ui_is_set_str(p['AriaLabelledBy']) %} aria-labelledby=\"{{ p['AriaLabelledBy'] }}\"{%- 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  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'aria-label') %}{%- if ui_is_set_str(p['AriaLabel']) %} aria-label=\"{{ p['AriaLabel'] }}\"{%- endif %}{%- endif %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {}), false, ['id', 'aria-labelledby', 'aria-describedby', 'aria-label']) }}\n>{{ children|default('', true)|safe }}</dialog>\n",
      "path": "ui/dialog/dialog.html.j2",
      "target": "ui/dialog/dialog.html.j2"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "jinja2",
      "primitive"
    ]
  },
  "name": "kit-dialog",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Kit Dialog",
  "type": "registry:ui"
}
