Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 796 Bytes

textarea.md

File metadata and controls

46 lines (30 loc) · 796 Bytes

textarea

image

label:

If this property is added, a label will be generated using label property as the content.

  • Type: String
  • Required: No

help:

Used to add help text below the field.

  • Type: String
  • Required: No

row:

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',
	},
},

Return

This will return string.

  • Type: string