IInputInstanceProps

Events/Callbacks to controll the behaviour of the component

interface IInputInstanceProps {
    /**
     * focus the input 
     * @example 
     * ```
     * inputRef.current?.focus()
     * ```
     */
    focus: () => void,
    /**
     * this will return the <Input /> element
     * @example 
     * ```
     * let input = inputRef.current?.getElement()
     * ```
     */
    getElement: () => React.MutableRefObject<HTMLInputElement>
}

Usage

Examples

Last updated