| 1 | import * as React from "react"; |
| 2 | |
| 3 | import { cn } from "@/lib/utils"; |
| 4 | |
| 5 | export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>; |
| 6 | |
| 7 | const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>( |
| 8 | ({ className, ...props }, ref) => { |
| 9 | return ( |
| 10 | <textarea |
| 11 | className={cn( |
| 12 | "flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", |
| 13 | className, |
| 14 | )} |
| 15 | ref={ref} |
| 16 | {...props} |
| 17 | /> |
| 18 | ); |
| 19 | }, |
| 20 | ); |
| 21 | Textarea.displayName = "Textarea"; |
| 22 | |
| 23 | export { Textarea }; |
| 24 |