Foundation ComponentReact 18 & 19Zero Runtime CSS
Textarea
Give longer thoughts a little more room.
Interactive preview
Usage
import { Textarea, Label } from "@devvy-ui/react";
<Label htmlFor="notes">Notes</Label>
<Textarea id="notes" rows={3} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| rows | number | 4 | Initial visible lines. |
| disabled | boolean | false | Disables native interaction. |
| value / defaultValue | string | — | Controlled or initial content. |
Accessibility & behavior
Platform Behavior & Guidelines
Supports native required, maxLength, aria-invalid, form association and vertical resizing.
Source ownership
Add the audited implementation directly into your repository with the CLI:
node /path/to/devvy-ui/packages/cli/src/cli.mjs add textareaMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Textarea.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.