UNPKG

@geezee/react-ui

Version:

Modern and minimalist React UI library.

36 lines (35 loc) 1.24 kB
/// <reference types="react" /> interface GeneralTextField { value: string; focus: () => void; blur: () => void; } export declare const useImperativeTextFieldHandlerGenerator: <T extends GeneralTextField>() => () => { ref: import("react").RefObject<T>; setValue: (value?: string) => void; getValue: () => string | undefined; focus: () => void | undefined; blur: () => void | undefined; }; declare const useInputHandle: () => { ref: import("react").RefObject<HTMLInputElement>; setValue: (value?: string) => void; getValue: () => string | undefined; focus: () => void | undefined; blur: () => void | undefined; }; declare const useAutoCompleteHandle: () => { ref: import("react").RefObject<HTMLInputElement>; setValue: (value?: string) => void; getValue: () => string | undefined; focus: () => void | undefined; blur: () => void | undefined; }; declare const useTextareaHandle: () => { ref: import("react").RefObject<HTMLTextAreaElement>; setValue: (value?: string) => void; getValue: () => string | undefined; focus: () => void | undefined; blur: () => void | undefined; }; export { useInputHandle, useTextareaHandle, useAutoCompleteHandle };