Skip to content

Field: TextArea

Patrick Sachs edited this page Sep 22, 2018 · 2 revisions

Preamble

The text area is an input for multi line text.

Properties

Along with the default element properties this field has the following properties:

{
  placeholder?: string,
  lines?: number
}
Name Description Required Default
placeholder Text that is displayed in the field if no value is submitted. Does not influence the value of the field. ""
lines The amount of lines the input has. This does not limit how many lines the user can enter, just how many lines the input displays at the same time. To limit the amount of lines allowed use a validator instead. 3

Example

import TextArea from '@react-formilicious/bulma/TextArea';

{
  type: TextArea,
  key: "feedback",
  name: "❓ Feedback",
  lines: 4,
  placeholder: "Please send us some feedback about react-formilicious!"
}

Clone this wiki locally