About
A multi-line text input with semantic color states, filled/outlined/ghost variants, size and resize controls, ported to React from the RockSolid (SolidJS) component library by Darshan Rajadhyaksha.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Textarea to your project and fits it to your theme.
Code
How Textarea is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Textarea from "@/components/ui/textarea";
export default function TextareaColorsDemo() {
return (
<div className="flex flex-col gap-4">
<Textarea
color="default"
placeholder="Default feedback"
aria-label="Default feedback"
/>
<Textarea
color="success"
defaultValue="Your response has been saved successfully."
aria-label="Success message"
/>
<Textarea
color="warning"
placeholder="Add any important details..."
aria-label="Warning"
/>
<Textarea
color="info"
defaultValue="Additional information is required for this request."
aria-label="Information"
/>
<Textarea
color="error"
placeholder="Please explain what went wrong"
aria-label="Error details"
/>
</div>
);
}















