import * as React from "react";
import { cn } from "@/lib/utils";

export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;

const Input = React.forwardRef<HTMLInputElement, InputProps>(
  ({ className, type, ...props }, ref) => {
    return (
      <input
        type={type}
        ref={ref}
        className={cn(
          "flex h-12 w-full rounded-xl border border-steel-200 bg-white px-4 py-2 text-sm text-steel-900 placeholder:text-steel-400 transition-colors",
          "hover:border-steel-300",
          "focus-visible:outline-none focus-visible:border-steel-900 focus-visible:ring-4 focus-visible:ring-steel-900/5",
          "disabled:cursor-not-allowed disabled:opacity-50",
          className
        )}
        {...props}
      />
    );
  }
);
Input.displayName = "Input";

export { Input };
