Content Blocks
Each block represents a line or segment of text in a display message. A panel update must include at least one block in the blocks array.
Block fields
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text content to display. |
size | string | No | Text size: small, medium, or large. |
weight | string | No | Font weight: regular, semibold, or bold. |
color | string | No | Text color in hex format (#RRGGBB). |
background | string | No | Segment background color in hex format (#RRGGBB). |
Examples
Simple text block
{
"blocks": [{ "text": "System operational" }]
}Styled blocks
{
"blocks": [
{
"text": "Deploy completed",
"color": "#E8FFF6",
"background": "#0A4A36",
"size": "large",
"weight": "bold"
},
{
"text": "Queue: 12 | Escalations: 0",
"color": "#061A13",
"size": "small"
}
]
}Multiple blocks
You can include any number of blocks in a single update. Blocks are rendered in order, top to bottom within the panel.