{
  "$schema": "https://rift-ds.com/schema/component.schema.json",
  "version": "1.40.0",
  "kind": "component",
  "name": "InspectorToggleSwitch",
  "label": "Inspector toggle switch",
  "slug": "inspector-toggle-switch",
  "category": "inspector",
  "description": "One-row switch for inspector panels, where the whole bar toggles and the track sits at its end.",
  "client": true,
  "importPath": "rift-ds/components/Inspector/InspectorToggleSwitch",
  "barrel": "main",
  "docsUrl": "https://rift-ds.com/components/inspector-toggle-switch",
  "markdownUrl": "https://rift-ds.com/components/inspector-toggle-switch.md",
  "exports": [
    {
      "component": "InspectorToggleSwitch",
      "props": [
        {
          "name": "label",
          "type": "string",
          "typeKind": "primitive",
          "required": true,
          "description": "The setting's name, drawn inside the bar on the left. Also the switch's accessible name."
        },
        {
          "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": "onCheckedChange",
          "type": "((checked: boolean) => void)",
          "typeKind": "function",
          "required": false,
          "description": "Convenience callback receiving the checked state directly.\nFires alongside `onChange`, which keeps the standard React event signature."
        },
        {
          "name": "className",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Additional CSS classes, applied to the bar rather than the <input>.",
          "default": ""
        }
      ]
    }
  ],
  "keyboard": [
    {
      "pattern": "switch",
      "label": "Switch",
      "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/switch/",
      "rows": [
        {
          "keys": [
            "Space"
          ],
          "text": "Turns the switch on, or off when it is on."
        }
      ]
    }
  ],
  "size": {
    "gzip": 2433
  }
}
