Skip to content

Checkbox Control

Boolean toggle displayed as a traditional checkbox.

OptionTypeDefaultDescription
labelstring-Field label
controlstringcheckboxControl type
defaultbooleanfalseDefault value
{
"attributes": {
"showExcerpt": {
"type": "boolean",
"default": true,
"wbs": {
"label": "Show Excerpt",
"control": "checkbox"
}
}
}
}
{% if attributes.showExcerpt %}
<p class="excerpt">{{ attributes.excerpt }}</p>
{% endif %}

Both toggle and checkbox store boolean values. toggle shows a switch, checkbox shows a traditional checkbox. Use whichever fits your UI preference.