Installation
Add Component
Copy the code snippet below into you components folder.
Integrate Recipe
Integrate this recipe in to your Panda config.
Usage
Examples
Variants
Use the variant prop to change the visual style of the textarea.
Sizes
Use the size prop to change the size of the textarea.
Resize
Use the resize prop to control the resize behavior of the textarea.
To limit the maximum height (or rows) of the textarea, we recommend using the maxHeight prop and setting the value to a lh unit.
Autoresize
Use the autoresize prop to make the textarea autoresize vertically as you type.
Field
Compose the textarea with the Field component to add a label, helper text, and error message.
Required
Pass the required prop to Field.Root and use the Field.RequiredIndicator to indicate that the textarea is required.
Invalid
Pass the invalid prop to the Field.Root and use the Field.ErrorText to indicate that the textarea is invalid.
Ref
Here's how to access the underlying element reference
Props
| Prop | Default | Type | 
|---|---|---|
| variant | 'outline' | 'outline' | 'subtle' | 'flushed' | 
| size | 'md' | 'sm' | 'md' | 'lg' | 'xl' |