Skip to content

TextAreaInput

Used to enter multiple lines of text.

Please enter your bio
import { TextAreaInput } from '@fintech-sandpit/ui/react';
return (
<TextAreaInput
label="Bio"
hint="Please enter your bio"
placeholder="Enter your bio here..."
error="Invalid bio"
autoresize
/>
);
NameTypeRequiredDefaultDescription
valuestringControlled value of the text area
defaultValuestringDefault (uncontrolled) value of the text area
namestringName of the input element
orientationOrientationverticalOrientation of the text area
sizeSizemdSize of the text area
labelstringLabel of the text area
hintstringHelper text of the text area
errorstringError text of the text area
requiredbooleanfalseWhether the text area is required
invalidbooleanfalseWhether the text area is invalid
readOnlybooleanfalseWhether the text area is read only
disabledbooleanfalseWhether the text area is disabled
placeholderstringPlaceholder of the text area
autoresizebooleanfalseWhether the text area should autoresize
rowsnumberNumber of rows of the text area
NameTypeDescription
onChange(value: string) => voidEvent handler for when the value changes
type Orientation = 'horizontal' | 'vertical';
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';