{
  "$schema": "https://rift-ds.com/schema/component.schema.json",
  "version": "1.40.0",
  "kind": "component",
  "name": "InspectorColorPicker",
  "label": "Inspector colour picker",
  "slug": "inspector-color-picker",
  "category": "inspector",
  "description": "One-row colour setting for inspector panels, with the hex and a round swatch at the bar's end and ColorPicker's own panel.",
  "client": true,
  "importPath": "rift-ds/components/Inspector/InspectorColorPicker",
  "barrel": "main",
  "docsUrl": "https://rift-ds.com/components/inspector-color-picker",
  "markdownUrl": "https://rift-ds.com/components/inspector-color-picker.md",
  "exports": [
    {
      "component": "InspectorColorPicker",
      "props": [
        {
          "name": "label",
          "type": "string",
          "typeKind": "primitive",
          "required": true,
          "description": "The setting's name, drawn inside the bar on the left. Also the start of the trigger's accessible name."
        },
        {
          "name": "value",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Current colour as a hex string — 3, 6 or 8 digit, with or without `#`."
        },
        {
          "name": "defaultValue",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Initial colour for uncontrolled use."
        },
        {
          "name": "onValueChange",
          "type": "((value: string) => void)",
          "typeKind": "function",
          "required": false,
          "description": "Called with the colour as an uppercase hex string (`#RRGGBB`, or\n`#RRGGBBAA` when `showAlpha` and alpha is below 100%). Fires live while\ndragging, as in ColorPicker."
        },
        {
          "name": "showAlpha",
          "type": "boolean",
          "typeKind": "primitive",
          "required": false,
          "description": "Add an alpha (opacity) slider to the panel and emit 8-digit hex when alpha is below 100%.",
          "default": false
        },
        {
          "name": "name",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "When set, a hidden input carries the current hex under this name, so the picker joins native form submission."
        },
        {
          "name": "disabled",
          "type": "boolean",
          "typeKind": "primitive",
          "required": false,
          "description": "Whether the picker is disabled.",
          "default": false
        },
        {
          "name": "size",
          "type": "\"default\" | \"compact\"",
          "typeKind": "enum",
          "values": [
            "compact",
            "default"
          ],
          "required": false,
          "description": "Component size, matching Button: `default` is 40px tall, `compact` 32px.",
          "default": "default"
        },
        {
          "name": "className",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Additional CSS classes, applied to the wrapper.",
          "default": ""
        }
      ]
    }
  ],
  "keys": {
    "by": "component",
    "note": "It is ColorPicker in the inspector’s dress: opening moves focus onto the colour area, where the arrow keys move both axes, and Escape closes the panel with focus back on the swatch."
  },
  "size": {
    "gzip": 5111
  }
}
