Node - panel

Purpose

The panel node is a container that allows content to be promoted in a document.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "type": "panel",
  "attrs": {
    "panelType": "info"
  },
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Hello world"
        }
      ]
    }
  ]
}

Content

panel is a block node in the top-level blocks group that can contain array of one-or-more:

Fields

NameMandatoryTypeValueNotes
typestring"panel"
contentarrayArray of one-or-more above mentioned nodes.Panels must have at least one child
attrsobject
attrs.panelTypestring"info", "note", "warning", "success", "error"