If this property is added, a label will be generated using label property as the content.
- Type:
String
- Required: No
Used to add help text below the field.
- Type:
String
- Required: No
The number of rows the textarea should contain. Defaults to four.
- Type:
String
- Required: No
- Default: 4
For more read gutenberg readme.
Example:
textarea: {
type: 'string',
field: {
type: 'textarea',
label: __( 'Textarea' ),
placement: 'inspector',
},
},
This will return string.
- Type:
string