A text area refers to a multi-line text input field within a graphical user interface or a web form.
sm, md, lg and responsive and can be changed by passing the size prop.lg.responsive, the component will be responsive to the viewport.Screen prefix | Screen width | Component size |
|---|---|---|
|
| sm |
|
| md |
|
| lg |
fullWidth prop to true.disabled prop to true.readOnly prop to true.error, warning and success and can be changed by passing the state prop.resizable prop controls how the textarea can be resized by the user.false (default): Textarea cannot be resizedtrue or 'both': Textarea can be resized both vertically and horizontally'vertical': Textarea can only be resized vertically'horizontal': Textarea can only be resized horizontallyresizable will be disabled when disabled or readOnly props are set to true.LabelTextarea supports adding Label and HelperText slots.label prop of Textarea component.helperText prop of Textarea component.Textarea component allows to include additional content with the main label.
labelPrefix prop to place content before the main label text, such as an icon (e.g., a search 🔍 icon) or a short word.labelSuffix prop.helperText prop.inline and tooltip and can be changed by passing the renderHelperType prop.maxLength prop.maxLength prop will show a counter below the textarea.