Skip to main content

select

A dropdown select list with predefined options. Use it when the merchant needs to choose from a fixed set of values (e.g., layout style, alignment, size).

Properties​

PropertyTypeRequiredDescription
type"select"YesField type identifier
labelstringYesLabel shown in the builder
optionsArray<{label, value}>YesList of selectable options
defaultstringNoDefault selected value

Usage​

{
"layout": {
"type": "select",
"label": "Layout",
"options": [
{ "label": "Grid", "value": "grid" },
{ "label": "List", "value": "list" }
],
"default": "grid"
}
}
info

The options array requires both label (shown in the builder) and value (saved to settings). The merchant sees the label, your template receives the value.

Interactive Preview​

Interactive Preview
Live Output
{
  "layout": "grid"
}