@rapido/components
Version:
Library of common primitive components used in Rapido apps.
33 lines (32 loc) • 948 B
TypeScript
/**
* Copyright (c) 2019-present Verum Technologies
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
interface Props {
children: (hover: boolean) => any | any;
onHoverIn?: Function;
onHoverOut?: Function;
}
interface State {
isHovered: boolean;
showHover: boolean;
}
declare class Hoverable extends Component<Props, State> {
constructor(props: Props);
_handleMouseEnter(_: any): void;
_handleMouseLeave(_: any): void;
_handleGrant(): void;
_handleRelease(): void;
render(): React.DetailedReactHTMLElement<{
onMouseEnter: (_: any) => void;
onMouseLeave: (_: any) => void;
onResponderGrant: () => void;
onResponderRelease: () => void;
onPressIn: () => void;
onPressOut: () => void;
}, HTMLElement>;
}
export default Hoverable;