Skip to content

The Open Standard for Generative UI

1.4 KB
Raw Blame
{
  "component": {
    "component": "Stack",
    "props": {
      "children": [
        {
          "component": "TextContent",
          "props": {
            "text": "Employees (Sample)",
            "size": "large-heavy"
          }
        },
        {
          "component": "Table",
          "props": {
            "columns": [
              {
                "component": "Col",
                "props": {
                  "label": "Name",
                  "type": "string"
                }
              },
              {
                "component": "Col",
                "props": {
                  "label": "Department",
                  "type": "string"
                }
              },
              {
                "component": "Col",
                "props": {
                  "label": "Salary",
                  "type": "number"
                }
              },
              {
                "component": "Col",
                "props": {
                  "label": "YoY change (%)",
                  "type": "number"
                }
              }
            ],
            "rows": [
              ["Ava Patel", "Engineering", 132000, 6.5],
              ["Marcus Lee", "Sales", 98000, 4.2],
              ["Sofia Ramirez", "Marketing", 105000, 3.1],
              ["Ethan Brooks", "Finance", 118500, 5],
              ["Nina Chen", "HR", 89000, 2.4]
            ]
          }
        }
      ]
    }
  },
  "error": null
}