Toggle

Toggle control on Toggle control off

Schema
{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "title": "Toggle control",
  "description": "Control that allows you to toggle on and off",
  "type": "object",
  "required": [
    "option"
  ],
  "properties": {
    "control": {
      "const": "toggle"
    },
    "label": {
      "title": "Label",
      "description": "Toggle label",
      "type": "string"
    },
    "description": {
      "title": "Description",
      "description": "Optional Toggle description",
      "type": "string"
    },
    "hovertip": {
      "title": "Hovertip",
      "description": "Optional hovertip for the toggle",
      "type": "string"
    },
    "value": {
      "title": "Value",
      "description": "Toggle value",
      "type": "boolean",
      "default": true
    }
  }
}
Example
{
  "control": "toggle",
  "label": "Hide image",
  "description": "Hide the image in the preview",
  "hovertip": "Hides the image when toggled on",
  "value": true
}