.github
dev-test
img
packages
scripts
website
content
blog
docs
widgets
boolean.md
date.md
datetime.md
file.md
hidden.md
image.md
index.md
list.md
markdown.md
number.md
object.md
relation.md
select.md
string.md
text.md
add-to-your-site.md
architecture.md
authentication-backends.md
beta-features.md
collection-types.md
configuration-options.md
contributor-guide.md
custom-widgets.md
customization.md
examples.md
intro.md
start-with-a-template.md
update-the-cms-version.md
pages
.keep
data
src
static
.babelrc
.eslintrc
.gitignore
.nvmrc
README.md
gatsby-browser.js
gatsby-config.js
gatsby-node.js
package.json
yarn.lock
.all-contributorsrc
.editorconfig
.gitignore
.nvmrc
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
babel.config.js
custom-preprocessor.js
jest.config.js
lerna.json
package.json
setupTestFramework.js
yarn.lock
19 lines
398 B
Markdown
19 lines
398 B
Markdown
---
|
|
label: "Text"
|
|
target: text
|
|
---
|
|
|
|
The text widget takes a multiline text field and saves it as a string. For shorter text inputs, use the string widget.
|
|
|
|
- **Name:** `text`
|
|
- **UI:** HTML textarea
|
|
- **Data type:** string
|
|
- **Options:**
|
|
- `default`: accepts a string; defaults to an empty string
|
|
- **Example:**
|
|
|
|
```yaml
|
|
- {label: "Description", name: "description", widget: "text"}
|
|
```
|
|
|