{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [],
    "notes": [
      "Without a label, role, or `decorative`, the SVG carries no ARIA attributes; set `label` for meaningful icons and `decorative` for purely visual ones.",
      "The generated SVG carries `data-icon`/`data-lucide` with the icon name."
    ]
  },
  "attributes": [
    {
      "default": "''",
      "description": "Lucide icon name in kebab-case (e.g. `chevron-down`); resolved against the Lucide icon set.",
      "from": null,
      "name": "icon",
      "property": "icon",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Accessible label; renders the icon as `role=\"img\"` with `aria-label` unless `decorative` or `role` override it.",
      "from": null,
      "name": "label",
      "property": "label",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Marks the icon decorative: `aria-hidden=\"true\"`, no role or label.",
      "from": null,
      "name": "decorative",
      "property": "decorative",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Explicit ARIA role for the SVG (defaults to `img` when a label is present).",
      "from": null,
      "name": "role",
      "property": "role",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "'2'",
      "description": "SVG stroke width (default `2`).",
      "from": null,
      "name": "stroke-width",
      "property": "stroke-width",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "'16'",
      "description": "SVG height in pixels (default `16`); overridden by `size`.",
      "from": null,
      "name": "height",
      "property": "height",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "'16'",
      "description": "SVG width in pixels (default `16`); overridden by `size`.",
      "from": null,
      "name": "width",
      "property": "width",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": null,
      "description": "Sets both width and height at once.",
      "from": null,
      "name": "size",
      "property": "size",
      "reflect": false,
      "tokens": null,
      "type": "string | undefined",
      "values": null
    },
    {
      "default": "''",
      "description": "CSS color applied to the SVG (stroke inherits `currentColor`).",
      "from": null,
      "name": "color",
      "property": "color",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "'none'",
      "description": "SVG fill (default `none`).",
      "from": null,
      "name": "fill",
      "property": "fill",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Per-instance text overrides as `key: text` pairs, merged over the global `z-i18n` script and the built-in defaults.",
      "from": "Hwc",
      "name": "i18n",
      "property": "i18n",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Floating UI placement options (for example `offset` and `shiftPadding`) parsed as `key: value` pairs.",
      "from": "Hwc",
      "name": "floating",
      "property": "floating",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Skips re-rendering after the first render; an existing `data-host-inner` child is adopted as the rendered DOM.",
      "from": "Hwc",
      "name": "force-prevent-rerender",
      "property": "force-prevent-rerender",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Selector or id of an external element or `<template>` whose inner content is cloned in place of an inline `template[data-fn=\"template\"]` child.",
      "from": "Hwc",
      "name": "template",
      "property": "template",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds classes to named parts as `key: classes` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "cls",
      "property": "cls",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds inline styles to named parts as `key: styles` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "stl",
      "property": "stl",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    }
  ],
  "category": "media",
  "children": [
    {
      "attributes": [
        {
          "description": "Marks the script as configuration (value: `config`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "config"
          ]
        },
        {
          "description": "Re-parses the configuration when the script mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "JSON configuration script parsed by the base class (i18n, cls, stl, floating).",
      "element": "script",
      "id": "config",
      "required": false,
      "selector": "script[data-fn=\"config\"][type=\"application/json\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the select as the data source (value: `data-source`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "data-source"
          ]
        },
        {
          "description": "Re-parses the options when the select mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Group header text; also the default group key.",
              "name": "label",
              "required": true,
              "type": "string"
            },
            {
              "description": "Disables every option in the group.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Overrides the group key used in the parsed data.",
              "name": "data-key",
              "required": false,
              "type": "string"
            },
            {
              "description": "Comma-separated keywords stored with the group's data.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "children": [
            {
              "attributes": [
                {
                  "description": "Value carried by this option in the parsed data.",
                  "name": "value",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Makes the option non-selectable.",
                  "name": "disabled",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Marks the option as initially selected.",
                  "name": "selected",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Extra search terms, comma-separated; searched alongside the label and value.",
                  "name": "data-keywords",
                  "required": false,
                  "type": "comma-separated string"
                }
              ],
              "description": "One option entry within the group.",
              "element": "option",
              "repeatable": true
            }
          ],
          "description": "Groups options under a label.",
          "element": "optgroup",
          "repeatable": true
        },
        {
          "attributes": [
            {
              "description": "Value carried by this option in the parsed data.",
              "name": "value",
              "required": false,
              "type": "string"
            },
            {
              "description": "Makes the option non-selectable.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Marks the option as initially selected.",
              "name": "selected",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Extra search terms, comma-separated.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "description": "One ungrouped option entry.",
          "element": "option",
          "repeatable": true
        }
      ],
      "description": "Hidden select parsed into grouped option data by the base class.",
      "element": "select",
      "id": "data-source",
      "required": false,
      "selector": "select[data-fn=\"data-source\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template as an icon source (value: `icons`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "icons"
          ]
        },
        {
          "description": "Re-parses the icons when the template mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Icon key referenced by `$icons`.",
              "name": "data-key",
              "required": true,
              "type": "string"
            }
          ],
          "description": "One icon element.",
          "element": "*",
          "repeatable": true
        }
      ],
      "description": "Instance-level icon repository.",
      "element": "template",
      "id": "icons",
      "required": false,
      "selector": "template[data-fn=\"icons\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template for deferred mounting (value: `template`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "template"
          ]
        },
        {
          "description": "Re-parses the template when it mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "Deferred content template mounted by the base class.",
      "element": "template",
      "id": "template",
      "required": false,
      "selector": "template[data-fn=\"template\"]"
    }
  ],
  "cssClasses": [
    {
      "appliesTo": "z-icon",
      "class": ".z-icon",
      "description": "Root class applied to the host.",
      "role": "root"
    },
    {
      "appliesTo": ".z-icon",
      "class": ".z-icon-image",
      "description": "Image-style icon presentation.",
      "role": "element"
    },
    {
      "appliesTo": ".z-icon",
      "class": ".z-svg",
      "description": "Base class for inline SVG sizing/alignment.",
      "role": "element"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "1.25rem",
      "description": "Size of image-style icons.",
      "file": "src/css/kit-components/icon.css",
      "kind": "base",
      "name": "--z-icon-image-size",
      "scope": ".z-icon-image",
      "syntax": "<length>"
    }
  ],
  "dataHooks": [
    {
      "appliesTo": "descendant",
      "attribute": "data-host-inner",
      "description": "Marks the rendered inner wrapper so `force-prevent-rerender` can adopt server-rendered DOM without re-rendering.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-reactive",
      "description": "Opts the marked child (config script, data source, icons, or template) into live re-parsing when its DOM mutates.",
      "from": "Hwc",
      "role": "config",
      "values": []
    }
  ],
  "events": [],
  "i18n": [
    {
      "default": "",
      "description": "Accessible label override; takes precedence over the `label` attribute.",
      "key": "label",
      "placeholders": [],
      "usedIn": []
    }
  ],
  "icons": [],
  "id": "icon",
  "inherits": [
    "Hwc",
    "Base"
  ],
  "keyboard": [],
  "kind": "hwc",
  "methods": [],
  "notes": [
    "Unknown icon names log a warning and render nothing.",
    "Instance icons can also be provided through the shared `icons` template repository used by other components."
  ],
  "parts": {
    "defaultClsTarget": "svg",
    "defaultStlTarget": "svg",
    "items": [
      {
        "defaultCls": "",
        "description": "The generated SVG element; the default `cls`/`stl` target.",
        "foundIn": [
          "render"
        ],
        "key": "svg",
        "supportsCls": true,
        "supportsStl": false
      }
    ]
  },
  "recipes": [],
  "related": [],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/icon.css",
      "src/css/kit-components/svg.css"
    ],
    "cssSelectors": [
      ".z-icon",
      ".z-icon-*",
      ".z-svg",
      ".z-svg-*"
    ],
    "ts": "src/js/hwc/components/icon.ts"
  },
  "summary": "Renders a Lucide icon as inline SVG with sizing, coloring, and accessible labeling.",
  "tag": "z-icon",
  "title": "Icon"
}
