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 />;
import Textarea from 'intergalactic/textarea';
<Textarea />;

TextareaProps

& & {...}
NameTypeDescription
valuestringText value of textarea
defaultValuestringDefault value if `value` property is not provided
size"m" | "l" | falseTextarea size
state"normal" | "invalid" | "valid" | falseThe value responsible for the component state
resizeProperty.Resize | "auto"Value responsible for resizing textarea
minRowsnumberValue responsible for the minimum number of rows in recalculation
maxRowsnumberValue responsible for the maximum number of rows in recalculation
onChange(value: string, event: SyntheticEvent<>) => voidHandler to change the value

Released under the MIT License.

Released under the MIT License.