Skip to main content
Checkbox input component.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Checkbox",
      "default": "Checkbox",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Label text"
    },
    "checked": {
      "default": false,
      "description": "Whether checkbox is checked",
      "type": "boolean"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Form field name"
    },
    "value": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Form value"
    },
    "disabled": {
      "default": false,
      "description": "Whether checkbox is disabled",
      "type": "boolean"
    },
    "required": {
      "default": false,
      "description": "Whether checkbox is required",
      "type": "boolean"
    },
    "onChange": {
      "$ref": "Action",
      "description": "Action(s) to execute when checked state changes",
      "default": null
    }
  },
  "required": [
    "type"
  ]
}