Files
Termix/src/components/ui/textarea.tsx
T

24 lines
837 B
TypeScript
Raw Normal View History

2025-09-12 14:42:00 -05:00
import * as React from "react";
import { cn } from "../../lib/utils";
+7
2025-11-05 10:36:16 -06:00
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
2025-09-12 14:42:00 -05:00
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
+1
2025-12-31 22:20:12 -06:00
"flex min-h-[80px] w-full rounded-md border border-input bg-transparent dark:bg-input/30 px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] duration-200 outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none",
2025-09-12 14:42:00 -05:00
className,
)}
ref={ref}
{...props}
/>
);
},
);
Textarea.displayName = "Textarea";
export { Textarea };