Fix transition props
This commit is contained in:
parent
231f10cbe2
commit
7f9de4b180
1 changed files with 4 additions and 2 deletions
|
@ -27,6 +27,10 @@ export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
||||||
maxWidth: '250px',
|
maxWidth: '250px',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
transitionProps={{
|
||||||
|
duration: 250,
|
||||||
|
transition: 'fade',
|
||||||
|
}}
|
||||||
{...rest}
|
{...rest}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
@ -37,8 +41,6 @@ export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
||||||
Tooltip.defaultProps = {
|
Tooltip.defaultProps = {
|
||||||
openDelay: 0,
|
openDelay: 0,
|
||||||
position: 'top',
|
position: 'top',
|
||||||
transition: 'fade',
|
|
||||||
transitionDuration: 250,
|
|
||||||
withArrow: true,
|
withArrow: true,
|
||||||
withinPortal: true,
|
withinPortal: true,
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue