Variable types

The variable types available when defining block schema fields.

Each variable in a block schema has a type that determines the input field shown to creators in the site builder and the value returned to your Liquid code.


Available types

TypeInputReturns
StringSingle-line text fieldA string
TextRich text editorAn HTML string
BooleanCheckboxtrue or false
NumberNumber inputA number
RangeRange sliderA number
SelectDropdown menuThe selected option's value
RadioRadio buttonsThe selected option's value
ColorColour pickerA color object
ImageImage uploadAn image object
LinkURL inputA link object
DateDate pickerA date string
ProductProduct selectorA product object
Experience slotExperience slot selectorAn experience slot object
Experience dateExperience date selectorAn experience date object
VariantVariant selectorA variant object
PackagePackage selectorA package object
PagePage selectorA page object
PostPost selectorA post object
ModifierModifier selectorA modifier object
Custom typesDefined by the custom typeA custom type object

On this page