openai/chatkit-python

Public

mirrored fromhttps://github.com/openai/chatkit-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.6.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

tests/assets/widgets/card_no_data.json

71lines · modepreview

{
  "type": "Card",
  "children": [
    {
      "type": "Col",
      "align": "center",
      "gap": 4,
      "padding": 4,
      "children": [
        {
          "type": "Box",
          "background": "green-400",
          "radius": "full",
          "padding": 3,
          "children": [
            {
              "type": "Icon",
              "name": "check",
              "size": "3xl",
              "color": "white"
            }
          ]
        },
        {
          "type": "Col",
          "align": "center",
          "gap": 1,
          "children": [
            {
              "type": "Title",
              "value": "Enable notification"
            },
            {
              "type": "Text",
              "value": "Notify me when this item ships",
              "color": "secondary"
            }
          ]
        }
      ]
    },
    {
      "type": "Row",
      "children": [
        {
          "type": "Button",
          "label": "Yes",
          "block": true,
          "onClickAction": {
            "type": "notification.settings",
            "payload": {
              "enable": true
            }
          }
        },
        {
          "type": "Button",
          "label": "No",
          "block": true,
          "variant": "outline",
          "onClickAction": {
            "type": "notification.settings",
            "payload": {
              "enable": true
            }
          }
        }
      ]
    }
  ]
}