Textarea
A field for text that takes several lines.
The courier reads it before leaving
Set the height in lines with rows.
Installation
import { NuiTextarea } from '@numior/kit';Usage
Change the number of rows and the states of the field.
Examples
Let the user resize the field
Pick the direction in resize.
By default only the height changes, and none fixes the size.
Update the model after typing
Add the .lazy modifier.
The order has no note yet
While text is typed through an input method editor, the model does not change: the value reaches it when the composition ends.
The text reaches the model when the user leaves the field, and .trim drops the spaces at both ends.
Accessibility
The field is a native <textarea>, and attributes and event handlers go straight to it. A screen reader reads the label, the hint and the error together with the field.