Feat(Builder): Decrease the delay before a tooltip opens (#7478)

Make tooltip show in 10 ms
This commit is contained in:
Bently
2024-07-19 09:21:34 +01:00
committed by GitHub
parent 64edf12c31
commit 6e319a6881

View File

@@ -7,7 +7,11 @@ import { cn } from "@/lib/utils"
const TooltipProvider = TooltipPrimitive.Provider
const Tooltip = TooltipPrimitive.Root
const Tooltip = ({ children, delayDuration = 10 }) => (
<TooltipPrimitive.Root delayDuration={delayDuration}>
{children}
</TooltipPrimitive.Root>
);
const TooltipTrigger = TooltipPrimitive.Trigger