Wrapper

A wrapper block that only returns a wrapper element.

Last modified: September 19, 2023

link Block name

t2/wrapper

link Usage

<!-- wp:t2/wrapper { "tagName": "div", "className": "my-custom-classname" } -->
	<!-- wp:paragraph -->
	<p>Hello World</p>
	<!-- /wp:paragraph -->
<!-- /wp:t2/wrapper -->

link Create a form with method and action:

<!-- wp:t2/wrapper {"tagName":"form","attrs":{"method":"post","action":"/something"}} --><!-- /wp:t2/wrapper -->