Arctic Design
Get StartedFoundationsComponentsExamples
K

TextArea

Provides a multi-line text input field for users to enter larger amounts of text.

Usage
Size
Disabled
Read Only
import { useState } from 'react';
import { TextArea } from '@arctic-kit/snow';
function Demo() {
const [value, setValue] = useState('');
return (
<TextArea
label="Description" placeholder="Enter your description here" size="medium"
value={value}
onChange={(event) => setValue(event.target.value)}
/>
);
}

API Reference

PropsTypeDefault
classNamestring | undefined---
containerClassNamestring | undefined---
containerStyleCSSProperties | undefined---
disabledboolean | undefined---
errorTextstring | undefined---
labelstring | undefined---
maxLengthnumber | undefined---
onBlur(((event: ChangeEvent<HTMLInputElement> | ChangeEvent<HTMLTextAreaElement>) => void) & ((event: ChangeEvent<HTMLTextAreaElement>) => void)) | undefined---
onChange((event: ChangeEvent<HTMLTextAreaElement>) => void) | undefined---
placeholderstring | undefined---
readOnlyboolean | undefinedfalse
requiredboolean | undefined---
size"small" | "medium" | "large"medium
styleCSSProperties | undefined---
valuestring | undefined---