Textarea API
Import
Props
autosize
Whether the textarea should automatically resize to fit its content.
Type: boolean
color
The color variant of the textarea.
Type: 'primary' | 'secondary' | 'error' | 'info' | 'warning' | 'success'
error
Whether the textarea is in an error state.
Type: boolean
fullWidth
Whether the textarea should take up the full width of its container.
Type: boolean
className
Additional class names for extending styles.
Type: string
helperText
Helper text to display below the textarea.
Type: string
label
The label of the textarea.
Type: string
labelClassName
Additional class names for extending styles of the label.
Type: string
CSS Variables
You can customize the style of <Textarea />
component by using the following
CSS variables (custom properties):
CSS Classes
.textarea
The base styles for <Textarea />
component.
.textarea--with-error
Styles for the error
state.
.textarea--primary
Styles for the primary
color variant.
.textarea--secondary
Styles for the secondary
color variant.
.textarea--error
Styles for the error
color variant.
.textarea--info
Styles for the info
color variant.
.textarea--warning
Styles for the warning
color variant.
.textarea--success
Styles for the success
color variant.
.textarea--fullwidth
Styles for the fullwidth
size variant.