6e453b3f08
* make widget docs editable * update widget doc frontmatter keys * improve docs preview * fix formatting * fix preview * add prism highlighting for previews * fix formatting * restore cms branch
17 lines
372 B
Markdown
17 lines
372 B
Markdown
---
|
|
title: boolean
|
|
label: "Boolean"
|
|
---
|
|
|
|
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`
|
|
- **Example:**
|
|
```yaml
|
|
- {label: "Draft", name: "draft", widget: "boolean", default: true}
|
|
```
|