Skip to main content
Form container that groups labeled inputs.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Form",
      "default": "Form",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "gap": {
      "default": 4,
      "type": "integer"
    },
    "onSubmit": {
      "$ref": "Action",
      "description": "Action(s) to execute when the form is submitted",
      "default": null
    }
  },
  "required": [
    "type"
  ]
}