Need help in the process of creating your own WordPress theme?
Text input option type.
| Name | Type | Required | Description |
|---|---|---|---|
| placeholder | string |
Specify input placeholder. |
| Name | Type | Default | Description |
|---|---|---|---|
| size | string |
"auto" |
There are 3 sizes:
-
"short", for short input.-
"medium", for normal input.-
"large", for large width input.-
"auto", for full width input. |
| Name | Type | Default | Description |
|---|---|---|---|
| value | string |
"" |
Any string value. |
{
id: "title",
type: "inputText"
}
{
label: "Title",
id: "title",
type: "inputText",
placeholder: "Insert item title",
config: {
size: "large",
},
defaultValue: {
value: "Item 1"
}
}