type MyProps = { name: string; } const CustomInput = forwardRef<HTMLInputElement, MyProps>(props) => { // access your props and ref here }