Skip to content

The Open Standard for Generative UI

794 B
Raw Blame
{
  "root": {
    "type": "Stack",
    "props": {
      "children": [
        {
          "type": "Text",
          "props": {
            "text": "Count: 2"
          }
        },
        {
          "type": "Button",
          "props": {
            "label": "Go",
            "action": {
              "actions": [
                {
                  "action": "Set",
                  "args": [
                    "$count",
                    3
                  ]
                }
              ]
            }
          }
        },
        {
          "type": "Text",
          "props": {
            "text": "null"
          }
        }
      ]
    }
  },
  "errors": [],
  "unresolved": [],
  "orphans": [
    "unused"
  ],
  "incomplete": false,
  "state": {
    "$count": 2
  }
}