gestalt
Version:
A set of React UI components which enforce Pinterest's design language
17 lines (16 loc) • 470 B
TypeScript
/**
* Returns event handlers that manage state for active, focus and hover states
* @returns handled states
*/
declare const useInteractiveStates: () => {
handleOnBlur: () => void;
handleOnFocus: () => void;
handleOnMouseDown: () => void;
handleOnMouseEnter: () => void;
handleOnMouseLeave: () => void;
handleOnMouseUp: () => void;
isActive: boolean;
isFocused: boolean;
isHovered: boolean;
};
export default useInteractiveStates;