The panel node is a container that highlights content.
panel is a top-level block node.
1 2{ "type": "panel", "attrs": { "panelType": "info" }, "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] } ] }
| Name | Required | Type | Value |
|---|---|---|---|
| type | ✔ | string | "panel" |
| content | ✔ | array | An array of one or more nodes |
| attrs | ✔ | object | |
| attrs.panelType | ✔ | string | "info", "note", "warning", "success", "error" |
content must contain array of one or more of the following nodes:
bulletListheading with no marks.orderedListparagraph with no marks.Rate this page: