About
A controlled textarea whose value is managed by React state, ideal for forms and message inputs.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Controlled Textarea to your project and fits it to your theme.
Code
How Controlled Textarea is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ControlledTextareaDemo from "@/components/ui/controlled-textarea";
export default function Default() {
return (
<div className="w-full max-w-sm">
<ControlledTextareaDemo />
</div>
);
}
















