Switch

Usage

A special button that enables the user to select or deselect a value, usually within a set of options.

JSON structure example

"viewDefinition": {
    "children": {
        "switchComponent": {
            "type": "switch",
            "id": "someId",
            "disabled": true,
            "size": "default",
            "name": "someName",
            "value": "bananas",
            "text": "Some cool text"
        }
    }
}