# Gutenberg Control Blocks > Gutenberg Control Blocks (GCB, the plugin is "GCB Lite" in its own code) is a WordPress plugin for building custom Gutenberg blocks with typed fields. A block is a folder in the theme: `block.json`, a `block.fields.json` declaring its fields (40+ field types), and a `render.php` or a component on your own frontend. These docs are built from the plugin's own docs and code. Built from GCB Lite 0.4.0 (commit ce232d4). Every page is also in one file: https://gutenbergcontrolblocks.com/llms-full.txt. Pages marked "generated" are read from the plugin's source code. ## Getting started - [Overview](https://gutenbergcontrolblocks.com/docs/index.html): GCB gives developers complete control over Gutenberg block development while delivering a premium editing experience for clients. - [Quickstart](https://gutenbergcontrolblocks.com/docs/quickstart.html): A GCB block is just typed fields plus some markup. - [How GCB works](https://gutenbergcontrolblocks.com/docs/how-it-works.html): Use WordPress to visually manage your components. - [CLI scaffolding](https://gutenbergcontrolblocks.com/docs/cli.html): Everything the visual builder does, the command line does too. wp gcblite scaffold writes the same block.json + block.fields.json into your theme, through the exact same scaffolder the admin UI calls, so the output is identical either way. ## Building blocks - [Blocks & attributes](https://gutenbergcontrolblocks.com/docs/blocks.html): A GCB block is three files in a folder: - [Writing a block](https://gutenbergcontrolblocks.com/docs/guide/writing-blocks.html): Each block has a tiny PHP/JSON schema in the theme and one React component in your Next.js (or Astro, or any HTTP-SSR) frontend. - [Lists, InnerBlocks and the Repeater](https://gutenbergcontrolblocks.com/docs/guide/lists.html): Not everything that appears more than once is a list a person adds to. - [The InnerBlocks repeater](https://gutenbergcontrolblocks.com/docs/blocks/inner.html): The InnerBlocks repeater repeats whole blocks of inner content. - [Defaults & placeholders](https://gutenbergcontrolblocks.com/docs/blocks/defaults.html): When a client inserts your block, you rarely want it to appear empty. - [Design tokens](https://gutenbergcontrolblocks.com/docs/blocks/tokens.html): GCB reads your theme's design tokens — the colours, font sizes and spacing defined in theme.json — so a field can offer your design system as its choices instead of free-typed values. - [Conditional logic](https://gutenbergcontrolblocks.com/docs/guide/conditional-logic.html): Every control supports a conditionalLogic block that hides it unless its rules pass against sibling attribute values: - [Show field sets only when conditions match](https://gutenbergcontrolblocks.com/docs/conditional-registration.html): Add a displayWhen clause to any structured-field config to gate when the field set appears. - [Validation](https://gutenbergcontrolblocks.com/docs/guide/validation.html): Every control supports a validation block that the meta-box and (in future) the block Inspector enforce client-side, with a server-side mirror that forces the post to draft on save if invalid: - [Drawing on a block in the editor](https://gutenbergcontrolblocks.com/docs/guide/editor-overlays.html): A block's preview is server-rendered and knows nothing of its children, and no JS runs in it. - [Collection queries](https://gutenbergcontrolblocks.com/docs/guide/collection-queries.html): Section blocks like a "Featured Projects" grid or a testimonial carousel all follow the same shape: pick a post type, choose between "latest N" and "this exact list, in this order". ## Fields - [Field reference](https://gutenbergcontrolblocks.com/docs/fields/index.html): Every entry in block.fields.json declares one Inspector control. - [text & textarea](https://gutenbergcontrolblocks.com/docs/fields/text.html): The simplest controls. - [richtext](https://gutenbergcontrolblocks.com/docs/fields/richtext.html): Tiptap-backed rich text editor. - [wysiwyg](https://gutenbergcontrolblocks.com/docs/fields/wysiwyg.html): Backwards-compat alias for richtext. - [heading-level](https://gutenbergcontrolblocks.com/docs/fields/heading-level.html): A compound control — a text input for the heading text plus a dropdown that picks the heading level (h1..h6, p, div, span). - [email](https://gutenbergcontrolblocks.com/docs/fields/email.html): Single-line input with type="email" so mobile keyboards show the @-key and browsers do basic validation. - [number](https://gutenbergcontrolblocks.com/docs/fields/number.html): Numeric input with up/down spinners. - [code](https://gutenbergcontrolblocks.com/docs/fields/code.html): Monospace textarea for code snippets. - [select](https://gutenbergcontrolblocks.com/docs/fields/select.html): Dropdown single-select. - [radio](https://gutenbergcontrolblocks.com/docs/fields/radio.html): Single-select shown as a vertical list of radio buttons. - [toggle / toggle-group](https://gutenbergcontrolblocks.com/docs/fields/toggle.html): 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. - [checkbox-group](https://gutenbergcontrolblocks.com/docs/fields/checkbox.html): Multi-select control. - [button-group](https://gutenbergcontrolblocks.com/docs/fields/button-group.html): Multi-select shown as a row of pressable buttons. - [url](https://gutenbergcontrolblocks.com/docs/fields/url.html): URL picker with a custom display label and an "open in new tab" toggle. - [page-link](https://gutenbergcontrolblocks.com/docs/fields/page-link.html): Placeholder type — currently falls through to the url control. - [date](https://gutenbergcontrolblocks.com/docs/fields/date.html): Date picker. - [datetime](https://gutenbergcontrolblocks.com/docs/fields/datetime.html): Date + time picker. - [image](https://gutenbergcontrolblocks.com/docs/fields/image.html): Media library image picker. - [gallery](https://gutenbergcontrolblocks.com/docs/fields/gallery.html): Multi-image picker with per-item focal point, size, repeat, and fixed-background settings. - [file](https://gutenbergcontrolblocks.com/docs/fields/file.html): Non-image attachment picker (PDFs, documents, archives, etc.). - [icon](https://gutenbergcontrolblocks.com/docs/fields/icon.html): Visual picker over the WP 7.0+ icon registry. - [oembed](https://gutenbergcontrolblocks.com/docs/fields/oembed.html): URL input with a live embed preview underneath. - [embed](https://gutenbergcontrolblocks.com/docs/fields/embed.html): A third-party widget — the snippet a provider gives you (Trustpilot, Calendly, Typeform, Elfsight…), pasted as it is. - [color](https://gutenbergcontrolblocks.com/docs/fields/color.html): Color picker pulling its palette from the active theme.json. - [background](https://gutenbergcontrolblocks.com/docs/fields/background.html): What a box is painted with — a colour, a gradient, a picture, or a video playing behind its contents — one field, either/or. - [size](https://gutenbergcontrolblocks.com/docs/fields/size.html): CSS length input with a unit dropdown (px, em, rem, %, vh, vw). - [spacing](https://gutenbergcontrolblocks.com/docs/fields/spacing.html): Preset spacing scale (None / S / M / L) with a custom-value escape hatch. - [range](https://gutenbergcontrolblocks.com/docs/fields/range.html): Slider control for numeric or token-bound values. - [layout](https://gutenbergcontrolblocks.com/docs/fields/layout.html): How a list's items sit on a wide screen — an advanced "cards per row". - [triggers](https://gutenbergcontrolblocks.com/docs/fields/triggers.html): What 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. - [path](https://gutenbergcontrolblocks.com/docs/fields/path.html): A 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. - [layers](https://gutenbergcontrolblocks.com/docs/fields/layers.html): A 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. - [marks](https://gutenbergcontrolblocks.com/docs/fields/marks.html): A 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. - [point](https://gutenbergcontrolblocks.com/docs/fields/point.html): Where something sits on the image round it — a hotspot pin, a label on a photo. - [hotspots](https://gutenbergcontrolblocks.com/docs/fields/hotspots.html): The hotspots field type, read from the plugin code. - [pin-map](https://gutenbergcontrolblocks.com/docs/fields/pin-map.html): A picture you click to place the block's repeater children on — touchpoints on a site map, hotspots on a product shot. - [google-map](https://gutenbergcontrolblocks.com/docs/fields/google-map.html): Address autocomplete plus a draggable map marker. - [post-object](https://gutenbergcontrolblocks.com/docs/fields/post-object.html): Pick one or many posts (or any custom post type). - [relationship](https://gutenbergcontrolblocks.com/docs/fields/relationship.html): Multi-select post relationship. - [taxonomy](https://gutenbergcontrolblocks.com/docs/fields/taxonomy.html): Term picker for any taxonomy. - [user](https://gutenbergcontrolblocks.com/docs/fields/user.html): WP user picker. - [query-loop](https://gutenbergcontrolblocks.com/docs/fields/query-loop.html): A paginated server-side query over a post type. - [repeater](https://gutenbergcontrolblocks.com/docs/fields/repeater.html): A list of rows in the sidebar: each row a small form (its fields), with Add, remove and drag to reorder. - [message](https://gutenbergcontrolblocks.com/docs/fields/message.html): Display-only Inspector note. - [Panels: group, panel, tools-panel](https://gutenbergcontrolblocks.com/docs/fields/panels.html): Structural types that group fields into sidebar panels. - [Adding your own field type](https://gutenbergcontrolblocks.com/docs/guide/custom-field-types.html): A theme or plugin can add a field type without touching GCB Lite. ## Structured fields - [Post fields (CPT meta)](https://gutenbergcontrolblocks.com/docs/post-fields.html): GCB Lite's field system isn't just for blocks. - [Options pages](https://gutenbergcontrolblocks.com/docs/options-fields.html): Options-page typed fields. - [Taxonomy term fields](https://gutenbergcontrolblocks.com/docs/taxonomy-fields.html): Taxonomy term-meta typed fields. - [User profile fields](https://gutenbergcontrolblocks.com/docs/user-fields.html): User profile typed fields — wp_usermeta surface. - [Fields and post types in JSON files](https://gutenbergcontrolblocks.com/docs/fields-in-json.html): Autoloader for structured-field JSON schemas. ## Headless rendering - [Headless rendering](https://gutenbergcontrolblocks.com/docs/headless.html): GCB Lite is built for a headless setup: WordPress holds the content, a React frontend (Next.js, Astro, Remix — anything that can run a component server) renders it. - [Rendering with a React component](https://gutenbergcontrolblocks.com/docs/guide/react-rendering.html): render.php is optional. - [Block parser](https://gutenbergcontrolblocks.com/docs/headless/parser.html): WordPress stores a page as a sequence of HTML comments wrapped around their rendered HTML. - [Block registry](https://gutenbergcontrolblocks.com/docs/headless/registry.html): A registry maps a block name (string) to a React component. - [Collection helper](https://gutenbergcontrolblocks.com/docs/headless/collection.html): A "section block" usually wants to render a strip of records pulled from a CPT — a projects grid, a testimonial slider, a brands logo wall. - [Deploy](https://gutenbergcontrolblocks.com/docs/headless/deploy.html): GCB Lite splits cleanly across hosts: WordPress sits wherever WP traditionally sits (Kinsta, Pressable, WP Engine, a $5 VPS); the React component server sits wherever Next.js / Astro / Remix sits (Vercel, Netlify, Cloudflare, self-hosted No ## AI workflows - [AI workflows](https://gutenbergcontrolblocks.com/docs/ai.html): WordPress 7.0 provides a standardized function-calling API for AI agents Abilities API, and gcb-lite exposes Gutenberg blocks through that API so an AI can discover available blocks, fill in their fields, preview them, and save them to Word ## Reference - [REST API routes](https://gutenbergcontrolblocks.com/docs/reference/rest-api.html): Every REST route GCB registers, read from its register_rest_route() calls. - [PHP functions](https://gutenbergcontrolblocks.com/docs/reference/php-functions.html): Every global gcblite_* function the plugin defines, with its signature as written in the code and the first paragraph of its docblock. - [Actions and filters](https://gutenbergcontrolblocks.com/docs/reference/hooks.html): Every gcblite_* (and gcb_*) action and filter the plugin fires, found by reading its do_action() and apply_filters() calls. - [JavaScript API](https://gutenbergcontrolblocks.com/docs/reference/javascript.html): The globals GCB puts on window in the editor for themes and plugins to use, read from src/. - [wp-config constants](https://gutenbergcontrolblocks.com/docs/reference/constants.html): Constants GCB reads when they are defined, usually in wp-config.php. - [Kit blocks](https://gutenbergcontrolblocks.com/docs/reference/kit-blocks.html): The plugin ships 27 blocks of its own in its blocks/ folder, read here from each block's block.json and block.fields.json.