Text Area
TextArea is used to set a value that is multiple lines of text.
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
Prop | Type | Default | Required |
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.
- Focused: The input has been navigated to and is ready to accept input.