The visual color appearance of the component
Textarea
The Textarea component allows you to easily create multi-line text inputs.
Props#
The Textarea composes the Input component.
colorScheme
colorScheme"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"errorBorderColor
errorBorderColorThe border color when the textarea is invalid. Use color keys in `theme.colors`
stringfocusBorderColor
focusBorderColorThe border color when the textarea is focused. Use color keys in `theme.colors`
stringisDisabled
isDisabledIf true, the form control will be disabled. This has 2 side effects:
- The FormLabel will have `data-disabled` attribute
- The form element (e.g, Input) will be disabled
booleanisInvalid
isInvalidIf true, the form control will be invalid. This has 2 side effects:
- The FormLabel and FormErrorIcon will have `data-invalid` set to true
- The form element (e.g, Input) will have `aria-invalid` set to true
booleanisReadOnly
isReadOnlyIf true, the form control will be readonly
booleanisRequired
isRequiredIf true, the form control will be required. This has 2 side effects:
- The FormLabel will show a required indicator
- The form element (e.g, Input) will have `aria-required` set to true
booleansize
sizeThe size of the Textarea
"xs" | "sm" | "md" | "lg"mdvariant
variantThe variant of the Textarea
"outline" | "flushed" | "filled" | "unstyled"outline