Field type
Panels: group, panel, tools-panel
Reference, generated from the plugin source
group, panel, tools-panel are structural types: they draw a panel in the sidebar and store nothing. A field joins a panel by naming the panel's id in its parentPanelId; the validator refuses a parentPanelId that names no structural control.
From the schema: Control type. group / panel / tools-panel are structural (render Inspector panel headers, produce no attribute). repeater is a special marker that maps to inner-blocks rather than an Inspector field. All other types map to an Inspector field with a typed attribute.
{
"controls": [
{ "id": "panel_main", "type": "group", "label": "Main" },
{ "id": "ctrl_heading", "type": "text", "label": "Heading", "attributeKey": "heading", "parentPanelId": "panel_main" }
]
}Panels hold the words of a block first: the editor opens the panel holding its text fields first (see "Words first" in Writing a block). Set controlsGroup on a field to put it on the Styles or Advanced tab.