import React , { ComponentProps , forwardRef , Ref } from 'react' ; import { InputBox } from '../InputBox' ; type UrlInputProps = Omit < ComponentProps < typeof InputBox > , 'type' > ; const UrlInput = forwardRef ( function UrlInput ( props , ref ) { return < InputBox type = 'url' ref = { ref } { ... props } />; } ) ; export default UrlInput ;