본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

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.

Edit this page on GitHub

더 알아보기 (Learn more)