Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

pass delayDuration to the right component

Oleg Isonen699660b8f3f1
diff --git a/app/shared/design-system/components/tooltip.tsx b/app/shared/design-system/components/tooltip.tsx
index 54bee63620..3b6f6675e1 100644
--- a/app/shared/design-system/components/tooltip.tsx
+++ b/app/shared/design-system/components/tooltip.tsx
@@ -9,6 +9,7 @@ type TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root> &
children: React.ReactElement;
content: React.ReactNode;
multiline?: boolean;
+ delayDuration?: number;
};
const Content = styled(TooltipPrimitive.Content, {
@@ -35,6 +36,7 @@ export const Tooltip = ({
defaultOpen,
onOpenChange,
multiline,
+ delayDuration,
...props
}: TooltipProps) => {
return (
@@ -42,6 +44,7 @@ export const Tooltip = ({
open={open}
defaultOpen={defaultOpen}
onOpenChange={onOpenChange}
+ delayDuration={delayDuration}
>
<TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>