diff --git a/README.md b/README.md index 0ba25ec..264ee71 100644 --- a/README.md +++ b/README.md @@ -111,9 +111,9 @@ Online examples: [http://react-component.github.io/tooltip/examples/](http://rea transitionName - String + String|Object - same as https://github.com/react-component/css-transition-group + same as https://github.com/react-component/animate onVisibleChange diff --git a/src/Tooltip.jsx b/src/Tooltip.jsx index 53eca8d..bada616 100644 --- a/src/Tooltip.jsx +++ b/src/Tooltip.jsx @@ -10,7 +10,10 @@ class Tooltip extends Component { defaultVisible: PropTypes.bool, visible: PropTypes.bool, placement: PropTypes.string, - transitionName: PropTypes.string, + transitionName: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.object, + ]), animation: PropTypes.any, onVisibleChange: PropTypes.func, afterVisibleChange: PropTypes.func,