Textarea
Textarea is a React and Tailwind CSS text component from HextaUI, licensed MIT. Copy it and paste it into your project.
HextaUI
MIT
text
What it is
Textarea is a React and Tailwind CSS text component from HextaUI, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from HextaUI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Textarea
import * as React from "react";
import { cn } from "@/lib/utils";
const Textarea = React.forwardRef<
HTMLTextAreaElement,
React.ComponentProps<"textarea">
>(function Textarea({ className, ...props }, ref) {
return (
<textarea
aria-disabled={(props as any).disabled ? true : undefined}
aria-required={(props as any).required ? true : undefined}
className={cn(
"field-sizing-content flex min-h-16 w-full touch-manipulation rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
className
)}
data-slot="textarea"
ref={ref}
{...props}
/>
);
});
export { Textarea };