import type { InputHTMLAttributes } from "react"; import { forwardRef } from "react"; interface Props extends InputHTMLAttributes { label?: string; hint?: string; } const Input = forwardRef( ({ label, hint, className = "", ...props }, ref) => { return (
{label && ( )} {hint && {hint}}
); }, ); Input.displayName = "Input"; export default Input;