diff --git a/docs/examples/formError.tsx b/docs/examples/formError.tsx
index 20b9b3b..cec8845 100644
--- a/docs/examples/formError.tsx
+++ b/docs/examples/formError.tsx
@@ -34,7 +34,7 @@ class Test extends Component {
required!}
diff --git a/docs/examples/onVisibleChange.tsx b/docs/examples/onVisibleChange.tsx
index 094b3ed..0de15c2 100644
--- a/docs/examples/onVisibleChange.tsx
+++ b/docs/examples/onVisibleChange.tsx
@@ -7,9 +7,9 @@ function preventDefault(e) {
}
interface TestState {
- visible: boolean;
- destroy?: boolean;
- }
+ visible: boolean;
+ destroy?: boolean;
+}
class Test extends Component {
state = {
@@ -37,7 +37,7 @@ class Test extends Component {
I am a tooltip}
diff --git a/docs/examples/simple.tsx b/docs/examples/simple.tsx
index ad284aa..8cb3012 100644
--- a/docs/examples/simple.tsx
+++ b/docs/examples/simple.tsx
@@ -216,7 +216,7 @@ class Test extends Component {
align={{
offset: [this.state.offsetX, this.state.offsetY],
}}
- transitionName={this.state.transitionName}
+ motion={{ motionName: this.state.transitionName }}
overlayInnerStyle={state.overlayInnerStyle}
>
trigger
diff --git a/src/Tooltip.tsx b/src/Tooltip.tsx
index 30c15dd..c621e5a 100644
--- a/src/Tooltip.tsx
+++ b/src/Tooltip.tsx
@@ -1,6 +1,6 @@
import type { ArrowType, TriggerProps, TriggerRef } from '@rc-component/trigger';
import Trigger from '@rc-component/trigger';
-import type { ActionType, AlignType, AnimationType } from '@rc-component/trigger/lib/interface';
+import type { ActionType, AlignType } from '@rc-component/trigger/lib/interface';
import classNames from 'classnames';
import * as React from 'react';
import { forwardRef, useImperativeHandle, useRef } from 'react';
@@ -25,10 +25,6 @@ export interface TooltipProps
defaultVisible?: boolean;
visible?: boolean;
placement?: string;
- /** @deprecated Use `motion` instead */
- transitionName?: string;
- /** @deprecated Use `motion` instead */
- animation?: AnimationType;
/** Config popup motion */
motion?: TriggerProps['popupMotion'];
onVisibleChange?: (visible: boolean) => void;
@@ -74,8 +70,6 @@ const Tooltip = (props: TooltipProps, ref: React.Ref) => {
children,
onVisibleChange,
afterVisibleChange,
- transitionName,
- animation,
motion,
placement = 'right',
align = {},
@@ -139,8 +133,6 @@ const Tooltip = (props: TooltipProps, ref: React.Ref) => {
getPopupContainer={getTooltipContainer}
onPopupVisibleChange={onVisibleChange}
afterPopupVisibleChange={afterVisibleChange}
- popupTransitionName={transitionName}
- popupAnimation={animation}
popupMotion={motion}
defaultPopupVisible={defaultVisible}
autoDestroy={destroyTooltipOnHide}