Skip to main content
Provide scoped interpolation values to children.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "State",
      "default": "State",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "state": {
      "additionalProperties": true,
      "description": "Local state values scoped to children",
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}