mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 06:00:20 +02:00
Fix transition props
This commit is contained in:
@@ -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 New Issue
Block a user