Stencil
Themes
Page context
Theme object reference
Elements
select

select

Used to select custom value on theme settings.

Option types should all be the same (i.e., string, number, etc.).

select: add option type
{
  "type": "select",
  "label": "i18n.BodyTextFontSize",
  "id": "fontSize-root",
  "options": [
    {
      "value": 12,
      "label": "12px"
    },
    {
      "value": 13,
      "label": "13px"
    },
    {
      "value": 14,
      "label": "14px"
    },
    {
      "value": 16,
      "label": "16px"
    }
  ]
},

Required fields: type, label, id, and options.

Optional field: force_reload.

https://storage.googleapis.com/bigcommerce-production-dev-center/images/theme_styles_select.png

Did you find what you were looking for?