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
544 B
Markdown
17 lines
544 B
Markdown
---
|
|
label: "Hidden"
|
|
title: hidden
|
|
---
|
|
|
|
Hidden widgets do not display in the UI. In folder collections that allow users to create new items, you will often want to set a default for hidden fields, so they will be set without requiring an input.
|
|
|
|
- **Name:** `hidden`
|
|
- **UI:** none
|
|
- **Data type:** any valid data type
|
|
- **Options:**
|
|
- `default`: accepts any valid data type; recommended for collections that allow adding new items
|
|
- **Example:**
|
|
```yaml
|
|
- {label: "Layout", name: "layout", widget: "hidden", default: "blog"}
|
|
```
|