Schema
To make a component a Customizer section, you must enrich its prototype with a Schema
definition object. The Schema
defines the name
, key
, and fields
that will become configurable through the Customizer.
You can check out the quick guide to creating your first section here.
The three required properties on your Schema are the label
, key
, and fields
.
Conditionally Display in the Section Gallery
If you have specific sections that you only want to be displayed in the customizer based on the page type or certain attributes of a Product or Collection, you can control that by returning a null
object in your Schema
. For example:
Next steps
Dive into our available fields that can be used in your Schema here.
Last updated