GCBGutenberg
Control Blocks
Buy

Fields

Field reference

Every entry in block.fields.json declares one Inspector control. The type picks the React component shown in the editor. The attributeKey picks the WP attribute name your React component receives.

Every control accepts the common keys id, attributeKey, label, helpText, default, parentPanelId, conditionalLogic, validation.

The plugin's code knows 50 field type names, counting aliases such as textarea and the three panel types. Each page below is built from the field's doc in the plugin (schemas/controls/); a page marked from the code is generated where no doc exists yet.

Text

Words a person types.

TypeWhat it is
textThe simplest controls.
textarea (on the text page)The simplest controls.
richtextTiptap-backed rich text editor.
wysiwygBackwards-compat alias for richtext.
heading-levelA compound control — a text input for the heading text plus a dropdown that picks the heading level (h1..h6, p, div, span).
heading (on the heading-level page)A compound control — a text input for the heading text plus a dropdown that picks the heading level (h1..h6, p, div, span).
emailSingle-line input with type="email" so mobile keyboards show the @-key and browsers do basic validation.
numberNumeric input with up/down spinners.
codeMonospace textarea for code snippets.

Choices

One or several from a fixed list, or on/off.

TypeWhat it is
selectDropdown single-select.
radioSingle-select shown as a vertical list of radio buttons.
toggleTwo related controls. toggle is an on/off switch storing a boolean. toggle-group is a single-select segmented control storing the chosen value as a string.
toggle-group (on the toggle page)Two related controls. toggle is an on/off switch storing a boolean. toggle-group is a single-select segmented control storing the chosen value as a string.
checkboxMulti-select control.
checkbox-group (on the checkbox page)Multi-select control.
button-groupMulti-select shown as a row of pressable buttons.

Addresses, dates and times.

TypeWhat it is
urlURL picker with a custom display label and an "open in new tab" toggle.
page-linkPlaceholder type — currently falls through to the url control.
dateDate picker.
datetimeDate + time picker.

Media

Pictures, files, icons and embedded content.

TypeWhat it is
imageMedia library image picker.
galleryMulti-image picker with per-item focal point, size, repeat, and fixed-background settings.
fileNon-image attachment picker (PDFs, documents, archives, etc.).
iconVisual picker over the WP 7.0+ icon registry.
oembedURL input with a live embed preview underneath.
embedA third-party widget — the snippet a provider gives you (Trustpilot, Calendly, Typeform, Elfsight…), pasted as it is.

Design

How a block looks: colour, size, spacing and what paints it.

TypeWhat it is
colorColor picker pulling its palette from the active theme.json.
backgroundWhat a box is painted with — a colour, a gradient, a picture, or a video playing behind its contents — one field, either/or.
sizeCSS length input with a unit dropdown (px, em, rem, %, vh, vw).
spacingPreset spacing scale (None / S / M / L) with a custom-value escape hatch.
rangeSlider control for numeric or token-bound values.

Layout and motion

Where a list's items sit, what they do as the page scrolls, and shapes drawn on a block.

TypeWhat it is
layoutHow a list's items sit on a wide screen — an advanced "cards per row".
triggersWhat a Layout's boxes do as the page scrolls, written as a small script: a box that stays on the screen, a slider that changes with the words being read, boxes that fade, move, scale, rotate or blur.
pathA line a person shapes, with stops along it and a box of content set off from each stop: a road with places on it, a journey, a curved timeline.
layersA card of one shape with things laid over each other on it, each at its own place and its own depth: a product card with its name, a photo and a badge standing off it.
marksA block's brand marks: the blobs, the stamp, the note the site's style draws, placed on the block's band by a person on a popout canvas.

Places on a picture

Pins and points set on an image.

TypeWhat it is
pointWhere something sits on the image round it — a hotspot pin, a label on a photo.
hotspotsRead from the code (no doc yet). From the code.
pin-mapA picture you click to place the block's repeater children on — touchpoints on a site map, hotspots on a product shot.
google-mapAddress autocomplete plus a draggable map marker.

Content from the site

Posts, terms, users and queries.

TypeWhat it is
post-objectPick one or many posts (or any custom post type).
relationshipMulti-select post relationship.
taxonomyTerm picker for any taxonomy.
userWP user picker.
query-loopA paginated server-side query over a post type.

Structure

Lists of rows, notes and panels that organise the sidebar.

TypeWhat it is
repeaterA list of rows in the sidebar: each row a small form (its fields), with Add, remove and drag to reorder.
messageDisplay-only Inspector note.
groupA sidebar panel that groups fields; stores nothing. From the code.
panelA sidebar panel that groups fields; stores nothing. From the code.
tools-panelA sidebar panel that groups fields; stores nothing. From the code.

Keys every field takes

Reference, generated from the plugin source

KeyTypeDescription
idstringUnique within the block. Used to wire parentPanelId references. Required.
typestringThe field type: one of the types below, or one a theme or plugin registered. Required.
labelstringRequired.
attributeKeystringRequired for non-group controls. Becomes the WP block attribute name.
attributeTypestring / number / boolean / object / array / integer
defaultDefault value matching attributeType.
optionsarrayChoices for select / radio. Each is {label, value}.
controlsGroupstringInspector tab: settings (the default), styles, or advanced (the Advanced panel of WordPress, for what only the person setting the block up needs).
parentPanelIdstringNests this control under a group-type control with this id.
helpTextstring
placeholderstring
validationobjectAuthor-side validation rules. Enforced client- and server-side. Keys: required, minLength, maxLength, min, max, pattern.
conditionalLogicobjectShow this control only when another control matches a value. Shape: { field, operator, value }.

From schemas/gcb.schema.json ($defs.control).

To add a type of your own, see Adding your own field type.

Built from GCB Lite 0.4.0 (ce232d4). Source: schemas/concepts/fields-overview.md, schemas/controls/, includes/Validation/BlockGcbValidator.php.

Copyright © 2026 Runchain. WordPress is a trademark of the WordPress Foundation.