Input types allow you to define different types of settings in your theme sections.
settings
array of your section schema. Each setting must have a type
property that specifies which input type to use.
In the example below, we define a section with three different input types: a text input for the heading, a toggle group for the layout, and a range slider for padding.
hidden
: Boolean value, indicates whether this setting should be displayed in Theme Editor’s configuration barvalidations
: Apply validations to this setting before saving. Currently supported:
required
: Boolean value. If true, this setting must be filled with a valid value.