Deprecate `Tooltip.tsx`

pull/28217/head
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
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ export interface ITooltipProps {
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> {
private static container: HTMLElement;
private parent: Element | null = null;