haixunMaster/components/ui/textarea.tsx

18 lines
581 B
TypeScript
Raw Normal View History

2026-06-21 12:50:31 +00:00
import * as React from "react";
import { cn } from "@/lib/utils";
const Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<"textarea">>(
({ className, ...props }, ref) => (
<textarea
className={cn(
"pixel-input font-readable flex min-h-[120px] w-full px-3 py-2.5 text-foreground transition-colors placeholder:text-muted-foreground/70 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
className
)}
ref={ref}
{...props}
/>
)
);
Textarea.displayName = "Textarea";
export { Textarea };