Skip to main content

boolean

Schema

{ "show_section": { "type": "boolean", "label": "Show section", "default": true } }

Nunjucks example

{% if widget.data.show_section %}<div>Visible</div>{% endif %}

Use for show/hide or on/off toggles.

Example output

{ "show_section": true }

boolean in builder

This is how it looks in the builder.