Textarea
Textarea is a element is often used in a form, to collect user inputs like comments or reviews
Usage
Code EditorCopyimport { Textarea } from '@erudilabs/alma'
Component
Here preview and detail explain of Textarea
component
Default
Code EditorCopy<Textarea name="experience" label="Tell us your experience" placeholder="Enter your experience here" />
Disabled
Code EditorCopy<Textarea name="experience_disabled" label="Tell us your experience" placeholder="Enter your experience here" disabled />
Helper
This field is using a helper text
Code EditorCopy<Textarea name="experience_helper" label="Tell us your experience" placeholder="Enter your experience here" helper="This field is using a helper text" />
Error
An unexpected error occurred. Please try again later
Code EditorCopy<Textarea name="experience_helper" label="Tell us your experience" placeholder="Enter your experience here" errorMessage="An unexpected error occurred. Please try again later" />
Props Reference
Prop
Type
Default
testId?
string
-
className?
string
-
label?
string
-
name
string
-
rows
number
-
rows?
number
-
helper?
ReactNode
-
placeholder?
string
-
errorMessage?
string
-
defaultValue?
string
-
disabled?
boolean
false
onChange?
(e: ChangeEvent) => void
-
onBlur?
(e: FocusEvent) => void
-