Deprecate Tooltip.tsx

This commit is contained in:
Florian Duros 2024-05-21 17:37:04 +02:00
parent a29cabe45a
commit a5e4daa0d1
No known key found for this signature in database
GPG key ID: A5BBB4041B493F15

View file

@ -57,6 +57,9 @@ export interface ITooltipProps {
type State = Partial<Pick<CSSProperties, "display" | "right" | "top" | "transform" | "left">>; type State = Partial<Pick<CSSProperties, "display" | "right" | "top" | "transform" | "left">>;
/**
* @deprecated Use [compound tooltip](https://element-hq.github.io/compound-web/?path=/docs/tooltip--docs) instead
*/
export default class Tooltip extends React.PureComponent<ITooltipProps, State> { export default class Tooltip extends React.PureComponent<ITooltipProps, State> {
private static container: HTMLElement; private static container: HTMLElement;
private parent: Element | null = null; private parent: Element | null = null;