dashpresshq/dashpress

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

Summary

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

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

export interface InputProps
  extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
  ({ className, type, ...props }, ref) => {
    return (
      <input
        type={type}
        className={cn("input-base h-9", className)}
        ref={ref}
        {...props}
      />
    );
  }
);
Input.displayName = "Input";

export { Input };