Checkbox Control
Boolean toggle displayed as a traditional checkbox.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
label | string | - | Field label |
control | string | checkbox | Control type |
default | boolean | false | Default value |
Example
Section titled “Example”{ "attributes": { "showExcerpt": { "type": "boolean", "default": true, "wbs": { "label": "Show Excerpt", "control": "checkbox" } } }}Template Usage
Section titled “Template Usage”{% if attributes.showExcerpt %} <p class="excerpt">{{ attributes.excerpt }}</p>{% endif %}Difference from Toggle
Section titled “Difference from Toggle”Both toggle and checkbox store boolean values. toggle shows a switch, checkbox shows a traditional checkbox. Use whichever fits your UI preference.