@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
15 lines (13 loc) • 510 B
Flow
// @flow
export type UseErrorTooltip = ({|
onFocus?: (ev: SyntheticInputEvent<any>) => void | Promise<any>,
|}) => {|
tooltipShown: boolean,
tooltipShownHover: boolean,
setTooltipShown: ((boolean => boolean) | boolean) => void,
setTooltipShownHover: ((boolean => boolean) | boolean) => void,
labelRef: {| current: HTMLElement | null |},
iconRef: {| current: HTMLElement | null |},
handleFocus: (ev: SyntheticInputEvent<any>) => void | Promise<any>,
|};
declare export default UseErrorTooltip;