Components
Text Area

Text Area

TextArea is used to set a value that is multiple lines of text.

Empty
Bình luận
Help message
Bình luận
Help message
Filled
Bình luận
Help message
Bình luận
Help message
Error
Bình luận
Bình luận
Error message
Disabled
Bình luận
Bình luận
Help message

Usage

import { TextArea } from "@momo-webplatform/mobase";
<TextArea label="Bình luận" placeholder="Placeholder text" />

API Reference

TextArea component extends HTML TextArea Element and supports all of its props.

TextArea
PropTypeDefaultRequired
label
string--false
message
string--false
isError
enumboolean--false
inputClassName
string--false
size
enum1 | 2--false

Best practices

  • Use a TextArea to allow users to input a long string of free-form text.
  • Status:
    • Focused: The input has been navigated to and is ready to accept input.
    • Error: The value failed validation.
    • Disabled: The input cannot accept input or become focused.