{
  "$schema": "https://rift-ds.com/schema/component.schema.json",
  "version": "1.40.0",
  "kind": "component",
  "name": "InspectorSlider",
  "label": "Inspector slider",
  "slug": "inspector-slider",
  "category": "inspector",
  "description": "One-row slider for inspector panels, where the whole bar is the control and its fill is the value.",
  "client": true,
  "importPath": "rift-ds/components/Inspector/InspectorSlider",
  "barrel": "main",
  "docsUrl": "https://rift-ds.com/components/inspector-slider",
  "markdownUrl": "https://rift-ds.com/components/inspector-slider.md",
  "exports": [
    {
      "component": "InspectorSlider",
      "props": [
        {
          "name": "label",
          "type": "string",
          "typeKind": "primitive",
          "required": true,
          "description": "The setting's name, drawn inside the bar on the left. Also the range's accessible name."
        },
        {
          "name": "value",
          "type": "number",
          "typeKind": "primitive",
          "required": false,
          "description": "Current value (controlled). Leave unset and use `defaultValue` for an uncontrolled slider."
        },
        {
          "name": "defaultValue",
          "type": "number",
          "typeKind": "primitive",
          "required": false,
          "description": "Starting value for an uncontrolled slider. Defaults to `min`."
        },
        {
          "name": "min",
          "type": "number",
          "typeKind": "primitive",
          "required": false,
          "description": "Minimum value.",
          "default": 0
        },
        {
          "name": "max",
          "type": "number",
          "typeKind": "primitive",
          "required": false,
          "description": "Maximum value.",
          "default": 100
        },
        {
          "name": "step",
          "type": "number",
          "typeKind": "primitive",
          "required": false,
          "description": "Step increment. Also sets how many decimals the reading shows (0.02 reads \"0.50\").",
          "default": 1
        },
        {
          "name": "format",
          "type": "((value: number) => string)",
          "typeKind": "function",
          "required": false,
          "description": "Formats the reading on the right, and the value a screen reader announces. Defaults to the step's precision."
        },
        {
          "name": "size",
          "type": "\"default\" | \"compact\"",
          "typeKind": "enum",
          "values": [
            "compact",
            "default"
          ],
          "required": false,
          "description": "Component size, matching Button: `default` is 40px tall, `compact` 32px (not the native character-width `size` attribute).",
          "default": "default"
        },
        {
          "name": "onValueChange",
          "type": "((value: number) => void)",
          "typeKind": "function",
          "required": false,
          "description": "Convenience callback receiving the numeric value directly.\nFires alongside `onChange`, which keeps the standard React event signature."
        },
        {
          "name": "locale",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "The BCP 47 locale the reading is written in when no `format` is given, such as `de-DE` (`0,5`). Defaults to the nearest LocaleProvider's, else `en-US`."
        },
        {
          "name": "className",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Additional CSS classes, applied to the bar rather than the <input>.",
          "default": ""
        }
      ]
    }
  ],
  "keys": {
    "by": "platform",
    "note": "A native range input: the browser’s own arrow, Home, End and Page keys move it."
  },
  "size": {
    "gzip": 976
  }
}
