latest version

Textarea

Textarea option type.

Fields

Name Type Required Description
placeholder string   Specify textarea placeholder.

Config

Name Type Default Description
size string "auto"
Specify the input size.

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.

DefaultValue

Name Type Default Description
value string "" Any string value.

Minimal Usage

{
  id: "description",
  type: "textarea"
}

Usage

{
  label: "Description",
  id: "description",
  type: "textarea",
  placeholder: "Add some description",
  config: {
    size: "large",
  },
  defaultValue: {
    value: "There's no description"
  }
}