Textarea
The Textarea defines a multi-line text input control.
Import
Importimport { Textarea } from '@backyard-ui/core';Usage
UsageSize
SizeUse the size prop to increase the visual size.
Controlled
ControlledTry to change the input value:
States
StatesDisabled
DisabledInvalid
InvalidReadOnly
ReadOnlyUsing with FormControl
Using with FormControlTo add a label or status message to your fields use the FormControl utility.
API Reference
API Reference- sizeDescription The Input size.Type
"xs" | "sm" | "md"Defaultsm - isDisabledDescription Set the form element to disabledType
boolean - isInvalidDescription Set the form element `aria-invalid` to `true`Type
boolean - isReadOnlyDescription Set the form element to readonlyType
boolean - isRequiredDescription Set the form element `aria-required` to `true`Type
boolean