npx gluestack-ui add textareaimport { Textarea } from '@/components/ui/textarea';


export default () => (
<Textarea>
<TextareaInput />
</Textarea>
);
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Changes the size of the Input Text |
isInvalid | bool | false | When true, the input displays an error state. |
isDisabled | bool | false | When true, the input is disabled and cannot be edited. |
isHovered | bool | false | When true, the input displays a hover state. |
isFocused | bool | false | When true, the input displays a focus state. |
isRequired | bool | false | If true, sets aria-required="true" on the input. |
isReadOnly | bool | false | If true, the input value cannot be edited. |
| Sx Prop | Description |
|---|---|
_input | Prop to style TextareaInput Component |
| Name | Value | Default |
|---|---|---|
size | xl | lg | md | sm | md |
| State | Data Attribute | Values |
|---|---|---|
hover | data-hover | true | false |
focus | data-focus | true | false |
disabled | data-disabled | true | false |
invalid | data-invalid | true | false |