Skip to content

The Open Standard for Generative UI

1.3 KB
Raw Blame
{
  "root": {
    "type": "Stack",
    "props": {
      "children": [
        {
          "type": "Button",
          "props": {
            "label": "Copy",
            "action": {
              "actions": [
                {
                  "action": "CopyToClipboard",
                  "args": [
                    "hello"
                  ]
                }
              ]
            }
          }
        },
        {
          "type": "Button",
          "props": {
            "label": "Both",
            "action": {
              "actions": [
                {
                  "action": "CopyToClipboard",
                  "args": [
                    "a b"
                  ]
                },
                {
                  "action": "ToAssistant",
                  "args": [
                    "Copied"
                  ]
                }
              ]
            }
          }
        },
        {
          "type": "Button",
          "props": {
            "label": "Share",
            "share": {
              "actions": [
                {
                  "action": "CopyToClipboard",
                  "args": [
                    "link"
                  ]
                }
              ]
            }
          }
        }
      ]
    }
  },
  "errors": [],
  "unresolved": [],
  "orphans": [],
  "incomplete": false
}