TeaSpeak-Client/imports/shared-app/ui/react-elements/Tooltip.d.ts

27 lines
1.2 KiB
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
import * as React from "react";
import { ReactElement } from "react";
export interface TooltipState {
forceShow: boolean;
hovered: boolean;
pageX: number;
pageY: number;
}
export interface TooltipProperties {
tooltip: () => ReactElement | ReactElement[] | string;
}
export declare class Tooltip extends React.Component<TooltipProperties, TooltipState> {
readonly tooltipId: string;
private refContainer;
private currentContainer;
constructor(props: any);
componentWillUnmount(): void;
render(): JSX.Element;
componentDidUpdate(prevProps: Readonly<TooltipProperties>, prevState: Readonly<TooltipState>, snapshot?: any): void;
private onMouseEnter;
updatePosition(): void;
}
export declare const IconTooltip: (props: {
children?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>[];
className?: string;
}) => JSX.Element;