Text Area
출처: 문서
본문
Examples
Basic
Invalid
Validated
Comments:
Share your thoughts.
Vertically resizable
Horizontally resizable
Not resizable
Uncontrolled
default value
Disabled
Read only
Plain read only variant
read only text area example
Auto resizing
Props
TextArea
*required | | Name | Type | Default | Description | aria-label | string | | Custom flag to show that the text area requires an associated id or aria-label.
| autoResize | boolean | | Flag to modify height based on contents.
| className | string | | Additional classes added to the text area.
| isDisabled | boolean | | Flag to show if the text area is disabled.
| isRequired | boolean | | Flag to show if the text area is required.
| onChange | (event: React.ChangeEvent, value: string) => void | | A callback for when the text area value changes.
| readOnlyVariant | 'default' | 'plain' | | Read only variant.
| resizeOrientation | 'horizontal' | 'vertical' | 'both' | 'none' | | Sets the orientation to limit the resize to
| validated | 'success' | 'warning' | 'error' | 'default' | | Value to indicate if the text area is modified to show that validation state. If set to success, text area will be modified to indicate valid state. If set to error, text area will be modified to indicate error state.
| value | string | number | | Value of the text area.