Here is how to implement the CheckBoxView view class.

"fields" : {
    "SomeOption" : {
      ......
    },
    "CheckSomething": {
       "label": "CheckBoxView Label",
       "viewClass": "CheckBoxView"
    }
}

This will produce the following in setup of the component:

Please note: when the checkbox is selected it will transmit to the next stage "CheckSomething": true (following our example above). Alternatively, if the checkbox is not selected it will transmit nothing unless a special logic is implemented to enforce the selection.

Multiple Checkboxes

If multiple checkboxes are necessary then they have to be implemented one-by-one in the setup. Here is an example from Sphereio-component - one of elastic.io open sourced components:

"getOrders": {
            "main": "./lib/triggers/queryOrders.js",
            "title": "Query Orders",
            "dynamicMetadata": true,
            "type": "polling",
            "metadata": {
                "out": "./lib/schemas/queryOrders.out.json"
            },
            "fields": {
                "where": {
                    "label": "Additional predicate to filter orders",
                    "required": false,
                    "viewClass": "TextFieldView"
                },
                "expandCustomerExternalId": {
                    "label": "Expand customers",
                    "viewClass": "CheckBoxView"
                },
                "expandPaymentInfo": {
                    "label": "Expand payment information",
                    "viewClass": "CheckBoxView"
                },
                "withSyncedCustomersOnly": {
                    "label": "Only orders of customers with External ID set",
                    "viewClass": "CheckBoxView"
                }
            }