carbon-react
Version:
A library of reusable React components for easily building user interfaces.
15 lines (14 loc) • 460 B
TypeScript
export interface InputContextProps {
hasFocus?: boolean;
hasMouseOver?: boolean;
onFocus?: () => void;
onBlur?: () => void;
onMouseDown?: () => void;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
inputRef?: (input: {
current: HTMLInputElement | HTMLTextAreaElement | null;
}) => void;
}
declare const useInputBehaviour: (blockGroupBehaviour?: boolean) => InputContextProps;
export default useInputBehaviour;