Files

19 lines
438 B
TypeScript
Raw Permalink Normal View History

2026-09-25 23:20:57 -05:00
import React, { forwardRef, InputHTMLAttributes } from "react";
import styles from "./Input.module.css";
type InputProps = InputHTMLAttributes<HTMLInputElement>;
export const Input = forwardRef<HTMLInputElement, InputProps>(
({ className, ...props }, ref) => {
return (
<input
ref={ref}
className={`${styles.input} ${className || ""}`}
{...props}
/>
);
}
);
Input.displayName = "Input";