Textarea
Textarea
Component represents native textarea tag and takes all its properties such as value and defaultValue.
jsx
import Textarea from '@semcore/ui/textarea';
<Textarea />;TextareaProps
& & {...}| Name | Type | Description |
|---|---|---|
| value | string | Text value of textarea |
| defaultValue | string | Default value if `value` property is not provided |
| size | "m" | "l" | false | Textarea size |
| state | "normal" | "invalid" | "valid" | false | The value responsible for the component state |
| resize | Property.Resize | "auto" | Value responsible for resizing textarea |
| minRows | number | Value responsible for the minimum number of rows in recalculation |
| maxRows | number | Value responsible for the maximum number of rows in recalculation |
| onChange | (value: string, event: SyntheticEvent<>) => void | Handler to change the value |