Skip to content

React Components

Blockstudio provides template components that map to native WordPress editor features. In the editor, they become interactive React components. On the frontend, they render as plain HTML.

Attribute Syntax

RichText and InnerBlocks accept single-quoted and double-quoted attributes in PHP, Twig, and Blade templates:

HTML
<RichText attribute='myRichText' tag='h2' />
<InnerBlocks tag="section" class="content" />

Unquoted values such as tag=h2 also work. Quote values containing spaces or JSON, and escape dynamic values for HTML attributes. Empty quoted values stay empty, while an attribute without a value is boolean.

RichText field selectors also support nested repeater paths, such as attribute="items[0].heading".