static-cms/packages/docs/content/docs/widget-text.mdx
2022-12-15 13:44:49 -05:00

37 lines
792 B
Plaintext

---
group: Widgets
title: Text
weight: 25
---
- **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
<CodeTabs>
```yaml
name: description
label: Description
widget: text
```
```js
name: 'description',
label: 'Description',
widget: 'text',
```
</CodeTabs>