Update widget documentation

This commit is contained in:
Daniel Lautzenheiser
2022-11-02 15:42:21 -04:00
parent fdd51aefa3
commit 6de5363f12
23 changed files with 618 additions and 332 deletions

View File

@ -4,14 +4,26 @@ title: Text
weight: 25
---
The text widget takes a multiline text field and saves it as a string. For shorter text inputs, use the string widget.
## Overview
- **Name:** `text`
- **UI:** HTML textarea
- **Data type:** string
- **Options:**
- `default`: accepts a string; defaults to an empty string
- **Example:**
```yaml
- {label: "Description", title: "description", widget: "text"}
```
- **UI:** Textarea
- **Data type:** `string`
The text widget takes a multiline text field and saves it as a string. For shorter text inputs, use the string widget.
## Widget options
For common options, see [Common widget options](/docs/widgets#common-widget-options).
| Name | Type | Default | Description |
| ------- | ------ | ------- | ------------------------------------------------------------- |
| default | string | `''` | _Optional_. The default value for the field. Accepts a string |
## Example
```yaml
name: description
label: Description
widget: text
```