Textarea
Requires:
@ray-js/ray≥0.5.10
Description
Textarea for multi-line text input and editing.
Props
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | - | Form field name, used as the key on form submit |
value | string | No | - | Input value |
placeholder | string | No | - | Placeholder when empty |
placeholderStyle | string | any | No | - | Specify the placeholder style; currently only color, fontSize, and fontWeight are supported (object or CSS declaration string) |
disabled | boolean | No | false | Whether disabled |
maxLength | number | No | 140 | Maximum input length; set to -1 for no limit |
autoHeight | boolean | No | false | Whether to auto-grow; when autoHeight is set, style.height has no effect |
| No | - | Triggered on keyboard input | ||
| No | - | Triggered on focus | ||
| No | - | Triggered on blur | ||
| No | - | Triggered when the number of lines changes; detail includes height, lineCount, etc. |