static-cms/website/content/docs/widget-text.mdx
2022-11-02 15:42:21 -04:00

30 lines
711 B
Plaintext

---
group: Widgets
title: Text
weight: 25
---
## Overview
- **Name:** `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
```