23 أسطر
637 B
TypeScript
23 أسطر
637 B
TypeScript
import * as React from "react";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const Textarea = React.forwardRef<HTMLTextAreaElement, React.TextareaHTMLAttributes<HTMLTextAreaElement>>(
|
|
({ className, ...props }, ref) => {
|
|
return (
|
|
<textarea
|
|
ref={ref}
|
|
className={cn(
|
|
"min-h-[90px] w-full rounded-lg border border-input bg-background/60 px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
},
|
|
);
|
|
|
|
Textarea.displayName = "Textarea";
|
|
|
|
export { Textarea };
|