Need help in the process of creating your own WordPress theme?
Textarea option type.
| Name | Type | Required | Description |
|---|---|---|---|
| placeholder | string |
Specify textarea placeholder. |
| Name | Type | Default | Description |
|---|---|---|---|
| size | string |
"auto" |
There are 3 sizes:
-
"short", for short textarea.-
"medium", for normal textarea.-
"large", for large width textarea.-
"auto", for full width textarea. |
| lines | number |
5 |
Specify textarea number of visible text lines. |
| Name | Type | Default | Description |
|---|---|---|---|
| value | string |
"" |
Any string value. |
{
id: "description",
type: "textarea"
}
{
label: "Description",
id: "description",
type: "textarea",
placeholder: "Add some description",
config: {
size: "large",
},
defaultValue: {
value: "There's no description"
}
}