Node - panel

Purpose

The panel node is a container that highlights content.

Type

panel is a top-level block node.

Example

1
2
{
  "type": "panel",
  "attrs": {
    "panelType": "info"
  },
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Hello world"
        }
      ]
    }
  ]
}

Fields

NameRequiredTypeValue
typestring"panel"
contentarrayAn array of one or more nodes
attrsobject
attrs.panelTypestring"info", "note", "warning", "success", "error"

Content

content must contain array of one or more of the following nodes:

Rate this page: