blob: 482231447290f7ac0e0218f53c161ed08faee0e3 [file] [log] [blame]
giod0026612025-05-08 13:00:36 +00001import * as React from "react";
gio91165612025-05-03 17:07:38 +00002
giod0026612025-05-08 13:00:36 +00003import { cn } from "@/lib/utils";
gio91165612025-05-03 17:07:38 +00004
giod0026612025-05-08 13:00:36 +00005const Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<"textarea">>(
6 ({ className, ...props }, ref) => {
7 return (
8 <textarea
9 className={cn(
10 "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11 className,
12 )}
13 ref={ref}
14 {...props}
15 />
16 );
17 },
18);
19Textarea.displayName = "Textarea";
gio91165612025-05-03 17:07:38 +000020
giod0026612025-05-08 13:00:36 +000021export { Textarea };