Skip to content

Commit

Permalink
feat(radix-ui/tooltip): allow to customize delay duration
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jtomaszewski authored and Copybara committed Jan 29, 2024
1 parent 6a0dd79 commit b6723a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plasmicpkgs/radix-ui/src/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export function registerTooltip(PLASMIC?: Registerable) {
...popoverProps.side,
defaultValueHint: "top",
},
delayDuration: {
type: "number",
defaultValueHint: 700
},
},
overlay: {
type: "slot",
Expand Down

0 comments on commit b6723a8

Please sign in to comment.