mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2025-12-17 17:28:09 +00:00
20 lines
706 B
TypeScript
20 lines
706 B
TypeScript
import React from "react";
|
|
|
|
type CustomTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
|
|
const CustomTextarea = React.forwardRef<
|
|
HTMLTextAreaElement,
|
|
CustomTextareaProps
|
|
>(({ className, ...props }, ref) => {
|
|
return (
|
|
<textarea
|
|
className={`flex min-h-[80px] 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 ${className}`}
|
|
ref={ref}
|
|
{...props}
|
|
/>
|
|
);
|
|
});
|
|
CustomTextarea.displayName = "CustomTextarea";
|
|
|
|
export { CustomTextarea };
|