Textarea | AIUI | Rokid

textarea edits multiline text containing line breaks and displays an input cursor while focused.

Textarea

textarea edits multiline text containing line breaks and displays an input cursor while focused.

Edit Multiline Content

<textarea value="{{notes}}" placeholder="Add notes" maxLength="500" bindinput="handleInput" />
export default {
  data: { notes: '' },
  handleInput(event) {
    this.setData({ notes: event.detail.value });
  },
};

Properties

PropertyTypeDefaultDescription
valueString""Current text, which may contain line breaks.
placeholderString""Hint shown while the field is empty and unfocused.
disabledBooleanfalseWhether keyboard input is ignored.
maxLengthNumber-Maximum number of accepted characters.

The component renders line breaks with white-space: pre-wrap. Placeholder colors follow the same rules as input.

Events

EventEvent DataDescription
bindinput{ detail: { value: string } }Fires whenever the text changes.