dashpresshq/dashpress

View on GitHub
src/frontend/components/ui/textarea.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import * as React from "react";

import { cn } from "@/components/utils";

export interface TextareaProps
  extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}

const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
  ({ className, ...props }, ref) => {
    return (
      <textarea
        className={cn(
          "input-base h-auto min-h-[60px] resize-y overflow-auto",
          className
        )}
        ref={ref}
        {...props}
      />
    );
  }
);

Textarea.displayName = "Textarea";

export { Textarea };