{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [
      {
        "attributes": [],
        "description": "Fill element; no ARIA attributes.",
        "part": "fill"
      },
      {
        "attributes": [
          {
            "name": "aria-label",
            "value": "${ariaLabel}"
          },
          {
            "name": "role",
            "value": "group"
          }
        ],
        "description": "Slider group: `role=\"group\"` labeled by `aria-label`.",
        "part": "host-inner"
      },
      {
        "attributes": [
          {
            "name": "aria-disabled",
            "value": "${this.disabled}"
          },
          {
            "name": "aria-label",
            "value": "${this.getKnobAriaLabel(type)}"
          },
          {
            "name": "aria-valuemax",
            "value": "${max}"
          },
          {
            "name": "aria-valuemin",
            "value": "${min}"
          },
          {
            "name": "aria-valuenow",
            "value": "${value}"
          },
          {
            "name": "aria-valuetext",
            "value": "${this.getAriaValueText(value)}"
          },
          {
            "name": "role",
            "value": "slider"
          }
        ],
        "description": "Knob: `role=\"slider\"` with `aria-valuemin`/`aria-valuemax`/`aria-valuenow`/`aria-valuetext`, labeled per knob, `aria-disabled` when disabled.",
        "part": "knob"
      },
      {
        "attributes": [],
        "description": "Value label; no ARIA attributes.",
        "part": "label"
      },
      {
        "attributes": [],
        "description": "Track area; no ARIA attributes.",
        "part": "runnable"
      }
    ],
    "notes": [
      "Each knob is a slider with live value text; in range mode the group text announces `low` to `high`.",
      "The value submits through the hidden form input(s)."
    ]
  },
  "attributes": [
    {
      "default": "false",
      "description": "Enables two knobs (low/high) selecting a range; the value submits as two entries.",
      "from": null,
      "name": "multiple",
      "property": "multiple",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "0",
      "description": "Minimum value (default 0).",
      "from": null,
      "name": "min",
      "property": "min",
      "reflect": false,
      "tokens": null,
      "type": "number",
      "values": null
    },
    {
      "default": "100",
      "description": "Maximum value (default 100).",
      "from": null,
      "name": "max",
      "property": "max",
      "reflect": false,
      "tokens": null,
      "type": "number",
      "values": null
    },
    {
      "default": "1",
      "description": "Step increment (default 1).",
      "from": null,
      "name": "step",
      "property": "step",
      "reflect": false,
      "tokens": null,
      "type": "number",
      "values": null
    },
    {
      "default": "false",
      "description": "Shows a value label following the knob.",
      "from": null,
      "name": "label",
      "property": "label",
      "reflect": false,
      "tokens": null,
      "type": "string | boolean",
      "values": null
    },
    {
      "default": "'top'",
      "description": "Label placement relative to the track: `top` (default) or `bottom`.",
      "from": null,
      "name": "label-position",
      "property": "label-position",
      "reflect": false,
      "tokens": null,
      "type": "'top' | 'bottom'",
      "values": [
        "top",
        "bottom"
      ]
    },
    {
      "default": "''",
      "description": "Accessible label of the slider group (defaults to the `aria-label` i18n text).",
      "from": null,
      "name": "aria-label",
      "property": "aria-label",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables the control so it cannot be interacted with.",
      "from": "InputMixin",
      "name": "disabled",
      "property": "disabled",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Associates the hidden form input with a form by id, even when the component sits outside that form.",
      "from": "InputMixin",
      "name": "form",
      "property": "form",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Field name for the hidden form input; array values submit as `name[]`.",
      "from": "InputMixin",
      "name": "name",
      "property": "name",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Placeholder text for the control's empty state.",
      "from": "InputMixin",
      "name": "placeholder",
      "property": "placeholder",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Marks the control as required.",
      "from": "InputMixin",
      "name": "required",
      "property": "required",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Initial value of the control, synchronized with the hidden form input.",
      "from": "InputMixin",
      "name": "value",
      "property": "value",
      "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": "inputs",
  "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-input-range",
      "class": ".z-input-range",
      "description": "Root class of the slider.",
      "role": "root"
    },
    {
      "appliesTo": ".z-input-range",
      "class": ".z-input-range-fill",
      "description": "The filled track portion.",
      "role": "element"
    },
    {
      "appliesTo": ".z-input-range",
      "class": ".z-input-range-knob",
      "description": "The draggable knob.",
      "role": "element"
    },
    {
      "appliesTo": ".z-input-range",
      "class": ".z-input-range-label",
      "description": "The value label.",
      "role": "element"
    },
    {
      "appliesTo": ".z-input-range",
      "class": ".z-input-range-label-bottom",
      "description": "Label below the track.",
      "role": "element"
    },
    {
      "appliesTo": ".z-input-range",
      "class": ".z-input-range-label-top",
      "description": "Label above the track.",
      "role": "element"
    },
    {
      "appliesTo": ".z-input-range",
      "class": ".z-input-range-runnable",
      "description": "The interactive track area.",
      "role": "element"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-primary)",
      "description": "Fill base color, mixed with transparency using `--z-input-range-fill-bg-o`.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-fill-bg",
      "scope": ".z-input-range-fill",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "100%",
      "description": "Fill opacity percentage used in the color mix.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-fill-bg-o",
      "scope": ".z-input-range-fill",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-bg)",
      "description": "Knob base color, mixed with transparency using `--z-input-range-knob-bg-o`.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-bg",
      "scope": ".z-input-range-knob",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "100%",
      "description": "Knob opacity percentage used in the color mix.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-bg-o",
      "scope": ".z-input-range-knob",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "border"
      ],
      "default": "var(--z-primary)",
      "description": "Knob border base color, mixed with transparency using `--z-input-range-knob-border-color-o`.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-border-color",
      "scope": ".z-input-range-knob",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border"
      ],
      "default": "50%",
      "description": "Knob border opacity percentage used in the mix.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-border-color-o",
      "scope": ".z-input-range-knob",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "9999px",
      "description": "Corner radius of the knob.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-radius",
      "scope": ".z-input-range-knob",
      "syntax": "<length>"
    },
    {
      "affects": [
        "box-shadow"
      ],
      "default": "var(--z-global-shadow)",
      "description": "Box shadow of the knob.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-shadow",
      "scope": ".z-input-range-knob",
      "syntax": ""
    },
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "1rem",
      "description": "Diameter of the knob.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-knob-size",
      "scope": ".z-input-range-knob",
      "syntax": "<length>"
    },
    {
      "affects": [
        "inset-block-start"
      ],
      "default": "2.5rem",
      "description": "Vertical offset of the value label from the track.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-label-offset-y",
      "scope": ".z-input-range",
      "syntax": "<length>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-primary)",
      "description": "Track base color, mixed with transparency using `--z-input-range-track-bg-o`.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-track-bg",
      "scope": ".z-input-range-runnable",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "20%",
      "description": "Track opacity percentage used in the color mix.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-track-bg-o",
      "scope": ".z-input-range-runnable",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "height"
      ],
      "default": "0.375rem",
      "description": "Height of the track.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-track-height",
      "scope": ".z-input-range",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "var(--z-global-radius)",
      "description": "Corner radius of the track.",
      "file": "src/css/kit-components/input-range.css",
      "kind": "base",
      "name": "--z-input-range-track-radius",
      "scope": ".z-input-range",
      "syntax": "<length>"
    }
  ],
  "dataHooks": [
    {
      "appliesTo": "descendant",
      "attribute": "data-disabled",
      "description": "Set while the control is disabled.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-dragging",
      "description": "Set while a knob is being dragged.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-fill-track",
      "description": "Marks the fill element.",
      "role": "marker",
      "values": []
    },
    {
      "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-label-position",
      "description": "Set to the label position (`top`/`bottom`).",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-multiple",
      "description": "Set in two-knob range mode.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-range-track",
      "description": "Marks the track element.",
      "role": "marker",
      "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": [
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the value changes; `detail.value` carries the value (two entries in range mode).",
      "detail": {
        "fields": [
          {
            "name": "value",
            "type": "string | string[]"
          }
        ],
        "type": "{ value: string | string[] }"
      },
      "from": "InputMixin",
      "name": "z-input-range:input"
    }
  ],
  "i18n": [
    {
      "default": "Range slider",
      "description": "Default accessible label of the slider group.",
      "key": "aria-label",
      "placeholders": [],
      "usedIn": [
        "host-inner"
      ]
    },
    {
      "default": "Range from {low} to {high}",
      "description": "Range value text template with `{low}` and `{high}`.",
      "key": "aria-range-text",
      "placeholders": [
        "low",
        "high"
      ],
      "usedIn": []
    },
    {
      "default": "Value: {value}",
      "description": "Single-knob value text template with `{value}`.",
      "key": "aria-value-text",
      "placeholders": [
        "value"
      ],
      "usedIn": []
    },
    {
      "default": "Maximum value",
      "description": "Accessible label of the high knob.",
      "key": "high-knob-label",
      "placeholders": [],
      "usedIn": []
    },
    {
      "default": "Minimum value",
      "description": "Accessible label of the low knob.",
      "key": "low-knob-label",
      "placeholders": [],
      "usedIn": []
    }
  ],
  "icons": [],
  "id": "input-range",
  "inherits": [
    "InputMixin",
    "Hwc",
    "Base"
  ],
  "keyboard": [
    {
      "action": "Adjusts the focused knob by one step.",
      "keys": [
        "ArrowLeft",
        "ArrowRight",
        "ArrowUp",
        "ArrowDown"
      ]
    },
    {
      "action": "Adjusts the focused knob by ten steps.",
      "keys": [
        "PageUp",
        "PageDown"
      ]
    },
    {
      "action": "Jumps to the minimum (low knob: its own minimum) or maximum.",
      "keys": [
        "Home",
        "End"
      ]
    }
  ],
  "kind": "hwc",
  "methods": [],
  "notes": [
    "Clicking the track moves the nearest knob; dragging suppresses the follow-up click.",
    "In range mode the knobs cannot cross; the fill spans between them."
  ],
  "parts": {
    "defaultClsTarget": "host-inner",
    "defaultStlTarget": "host-inner",
    "items": [
      {
        "defaultCls": "",
        "description": "The filled portion of the track.",
        "foundIn": [
          "render"
        ],
        "key": "fill",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "z-input-range",
        "description": "The slider root (default `z-input-range`); the default `cls`/`stl` target.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "host-inner",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "The draggable knob.",
        "foundIn": [
          "render"
        ],
        "key": "knob",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "",
        "description": "Class applied to the knob while dragging.",
        "foundIn": [
          "render"
        ],
        "key": "knob-dragging",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "",
        "description": "The value label.",
        "foundIn": [
          "render"
        ],
        "key": "label",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "",
        "description": "Class positioning the label below the track.",
        "foundIn": [
          "render"
        ],
        "key": "label-bottom",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "",
        "description": "Class positioning the label above the track.",
        "foundIn": [
          "render"
        ],
        "key": "label-top",
        "supportsCls": true,
        "supportsStl": false
      },
      {
        "defaultCls": "",
        "description": "The clickable/draggable track area.",
        "foundIn": [
          "render"
        ],
        "key": "runnable",
        "supportsCls": true,
        "supportsStl": true
      }
    ]
  },
  "recipes": [],
  "related": [
    "input-pin",
    "input-time"
  ],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/input-range.css"
    ],
    "cssSelectors": [
      ".z-input-range",
      ".z-input-range-*"
    ],
    "ts": "src/js/hwc/components/input-range.ts"
  },
  "summary": "Custom slider with a draggable knob, filled track, optional value label, and a two-knob range mode.",
  "tag": "z-input-range",
  "title": "Range Slider"
}
