Text field
The text field allows the editor to enter a single line of text.
myTextField:
  type: text
This field definition creates the following input in the control panel:
Attributes
| Property | Description | 
|---|---|
| group | Starts a new field group. | 
| instructions | Additional instructions for this field in the control panel. Will be shown beneath the field label. | 
| label | The primary `label` of the input field in the control panel. When omitted, a label will be generated from the name of the field. | 
| rules | The validation rules of the field. | 
| translatable | Defines whether the text field will be translated when synchronizing content fields across sites. Defaults to false. | 
| width | The width of the field in the control panel. | 
 translatable
 Defines whether the text field will be translated when synchronizing content fields across sites. Defaults to false.
translatable: true
Templating
Printing the text field returns the textual contents of the field.
label: Text field demo
fields:
  textField:
    type: text
---
<h1>{{ textField }}</h1>
 html
 Returns the contents of the text field as a twig html node.
<h1>{{ textField.html }}</h1>