Skip to content

Textarea

Textarea

Component represents native textarea tag and takes all its properties such as value and defaultValue.

jsx
import Textarea from 'intergalactic/textarea';
<Textarea />;

TextareaProps

& & {...}
NameTypeDescription
valuestring Text value of textarea
defaultValuestring 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
resizeProperty.Resize | "auto" Value responsible for resizing textarea
minRowsnumber Value responsible for the minimum number of rows in recalculation
maxRowsnumber Value responsible for the maximum number of rows in recalculation
onChange(value: string, event: SyntheticEvent<>) => void Handler to change the value

Released under the MIT License.

Released under the MIT License.