{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Image primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    Image: Image renders an img element; alt is always emitted.\n    Props (p): Class (string), Src (string), Alt (string), SrcSet (string), Sizes (string), Width (string), Height (string), Loading (string), Decoding (string), Attrs (attrs).\n    Classes without rendering: image_classes(p) (no asChild in Jinja2). -#}\n<img\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'src') %}{%- if ui_is_set_str(p['Src']) and ui_safe_url(p['Src'], true) != '' %} src=\"{{ p['Src'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'alt') %} alt=\"{{ ui_def(p['Alt'], '') }}\"{%- endif %}\n  {%- with cls = image_classes(p) %}{%- if cls %} class=\"{{ cls }}\"{%- endif %}{%- endwith %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'srcset') %}{%- if ui_is_set_str(p['SrcSet']) %} srcset=\"{{ p['SrcSet'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'sizes') %}{%- if ui_is_set_str(p['Sizes']) %} sizes=\"{{ p['Sizes'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'width') %}{%- if ui_is_set_str(p['Width']) %} width=\"{{ p['Width'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'height') %}{%- if ui_is_set_str(p['Height']) %} height=\"{{ p['Height'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'loading') %}{%- if ui_is_set_str(p['Loading']) %} loading=\"{{ p['Loading'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'decoding') %}{%- if ui_is_set_str(p['Decoding']) %} decoding=\"{{ p['Decoding'] }}\"{%- endif %}{%- endif %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {}), true, ['src', 'srcset', 'sizes', 'width', 'height', 'loading', 'decoding']) }}\n>\n",
      "path": "ui/image/image.html.j2",
      "target": "ui/image/image.html.j2"
    },
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    Picture: Picture wraps Source candidates and a fallback Image.\n    Props (p): Class (string), Attrs (attrs), Children (children).\n    children: TRUSTED HTML printed with |safe — never pass unescaped user input.\n    Classes without rendering: picture_classes(p) (no asChild in Jinja2). -#}\n<picture\n  {%- with cls = picture_classes(p) %}{%- if cls %} class=\"{{ cls }}\"{%- endif %}{%- endwith %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {})) }}\n>{{ children|default('', true)|safe }}</picture>\n",
      "path": "ui/image/picture.html.j2",
      "target": "ui/image/picture.html.j2"
    },
    {
      "content": "{#- Code generated by @ui8kit/codegen. DO NOT EDIT.\n    Source: Source renders a source candidate inside picture.\n    Props (p): SrcSet (string), Media (string), Type (string), Sizes (string), Attrs (attrs).\n-#}\n<source\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'srcset') %}{%- if ui_is_set_str(p['SrcSet']) %} srcset=\"{{ p['SrcSet'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'media') %}{%- if ui_is_set_str(p['Media']) %} media=\"{{ p['Media'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'type') %}{%- if ui_is_set_str(p['Type']) %} type=\"{{ p['Type'] }}\"{%- endif %}{%- endif %}\n  {%- if not ui_has_attr(ui_def(p['Attrs'], {}), 'sizes') %}{%- if ui_is_set_str(p['Sizes']) %} sizes=\"{{ p['Sizes'] }}\"{%- endif %}{%- endif %}\n  {{ ui_attr_html(ui_def(p['Attrs'], {}), false, ['srcset', 'media', 'type', 'sizes']) }}\n>\n",
      "path": "ui/image/source.html.j2",
      "target": "ui/image/source.html.j2"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "jinja2",
      "primitive"
    ]
  },
  "name": "kit-image",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Kit Image",
  "type": "registry:ui"
}
