static-cms/website/content/docs/widget-boolean.mdx

18 lines
416 B
Plaintext
Raw Normal View History

2022-09-30 11:39:35 -04:00
---
group: Widgets
title: Boolean
weight: 10
2022-09-30 11:39:35 -04:00
---
The boolean widget translates a toggle switch input to a true/false value.
- **Name:** `boolean`
- **UI:** toggle switch
- **Data type:** boolean
- **Options:**
- `default`: accepts `true` or `false`; defaults to `false` when `required` is set to `false`
- **Example:**
```yaml
- {label: "Draft", title: "draft", widget: "boolean", default: true}
2022-09-30 11:39:35 -04:00
```