Textarea
npx shadcn add @klarhimmel/inputCopy for AIDetailsAbout, usage, props and more
Multi-line text, resizable vertically.
When to use
Use for
Messages and notes of a few lines or more.
Not for
One-line answers. Use Input.
Pairs with
Field, contact forms.
Preview
Tell us about allergies or late arrival.
Keep it under 500 characters.
Import
Import
- Files
- input.tsx, in components/klarhimmel/ui/. With it: button, editing, theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
rows | number | 5 | Visible lines before it scrolls. |
...textarea | TextareaHTMLAttributes | - | Native attributes are passed through. |
className | string | - | Extra classes, merged after the component's own. |