Component
Textarea
Collects multi-line text from a user.
Install
Run the CLI to copy the source into your project.
pnpm dlx @stalk-ui/cli add @stalk-ui/textareaExamples
Live previews render through the docs app's PandaCSS codegen.
<Textarea aria-label="Message" placeholder="Write a message…" />
<Textarea invalid aria-label="Message" defaultValue="too short" />
<Textarea disabled aria-label="Read only" defaultValue="This textarea is disabled." />
Props
Public component props extracted from the source TypeScript types.
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| `invalid` | `boolean` | No | - | - |
| `size` | `TextareaSize` | No | - | - |
Variants
Variant axes exposed by the underlying PandaCSS recipe or slot recipe.
| Variant | Values |
|---|---|
| `invalid` | `true` |
| `size` | `sm`, `md`, `lg` |
Registry
Files this component contributes to your registry install.
- Manifest: `/r/textarea.json`
- Recipe: `textarea`
- Files: `src/components/ui/textarea.tsx`