From b6723a88807d8a3e8313f51d04ed12e599655e6f Mon Sep 17 00:00:00 2001 From: Jacek Tomaszewski Date: Fri, 26 Jan 2024 09:48:07 +0100 Subject: [PATCH] feat(radix-ui/tooltip): allow to customize delay duration Currently the default is to show the tooltip 700ms after a user hovers the tooltip trigger, which may be a too long wait in some scenarios. ( https://www.radix-ui.com/primitives/docs/components/tooltip ) Change-Id: I122d1cfbee70ca2666468772817df07a2d33106f GitOrigin-RevId: ac46bcc0c44930862722f239855464112672d2fc --- plasmicpkgs/radix-ui/src/tooltip.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plasmicpkgs/radix-ui/src/tooltip.tsx b/plasmicpkgs/radix-ui/src/tooltip.tsx index f27eb52735c..41f3f54ed70 100644 --- a/plasmicpkgs/radix-ui/src/tooltip.tsx +++ b/plasmicpkgs/radix-ui/src/tooltip.tsx @@ -111,6 +111,10 @@ export function registerTooltip(PLASMIC?: Registerable) { ...popoverProps.side, defaultValueHint: "top", }, + delayDuration: { + type: "number", + defaultValueHint: 700 + }, }, overlay: { type: "slot",