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
| Type | Input | Returns |
|---|---|---|
| String | Single-line text field | A string |
| Text | Rich text editor | An HTML string |
| Boolean | Checkbox | true or false |
| Number | Number input | A number |
| Range | Range slider | A number |
| Select | Dropdown menu | The selected option's value |
| Radio | Radio buttons | The selected option's value |
| Color | Colour picker | A color object |
| Image | Image upload | An image object |
| Link | URL input | A link object |
| Date | Date picker | A date string |
| Product | Product selector | A product object |
| Experience slot | Experience slot selector | An experience slot object |
| Experience date | Experience date selector | An experience date object |
| Variant | Variant selector | A variant object |
| Package | Package selector | A package object |
| Page | Page selector | A page object |
| Post | Post selector | A post object |
| Modifier | Modifier selector | A modifier object |
| Custom types | Defined by the custom type | A custom type object |