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/textarea

Examples

Live previews render through the docs app's PandaCSS codegen.

Theme
<Textarea aria-label="Message" placeholder="Write a message…" />
Theme
<Textarea invalid aria-label="Message" defaultValue="too short" />
Theme
<Textarea disabled aria-label="Read only" defaultValue="This textarea is disabled." />

Props

Public component props extracted from the source TypeScript types.

PropTypeRequiredDefaultDescription
`invalid``boolean`No--
`size``TextareaSize`No--

Variants

Variant axes exposed by the underlying PandaCSS recipe or slot recipe.

VariantValues
`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`