| gio | d002661 | 2025-05-08 13:00:36 +0000 | [diff] [blame] | 1 | import * as React from "react"; |
| gio | 9116561 | 2025-05-03 17:07:38 +0000 | [diff] [blame] | 2 | |
| gio | d002661 | 2025-05-08 13:00:36 +0000 | [diff] [blame] | 3 | import { cn } from "@/lib/utils"; |
| gio | 9116561 | 2025-05-03 17:07:38 +0000 | [diff] [blame] | 4 | |
| gio | d002661 | 2025-05-08 13:00:36 +0000 | [diff] [blame] | 5 | const 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 | ); |
| 19 | Textarea.displayName = "Textarea"; |
| gio | 9116561 | 2025-05-03 17:07:38 +0000 | [diff] [blame] | 20 | |
| gio | d002661 | 2025-05-08 13:00:36 +0000 | [diff] [blame] | 21 | export { Textarea }; |