Skip to content

Commit f0b6e4c

Browse files
docs: TooltipRefProps
1 parent ae68615 commit f0b6e4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/docs/examples/imperative-mode.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ interface TooltipImperativeCloseOptions {
6363
delay?: number
6464
}
6565

66-
interface TooltipImperativeProps {
66+
interface TooltipRefProps {
6767
open: (options?: TooltipImperativeOpenOptions) => void
6868
close: (options?: TooltipImperativeCloseOptions) => void
6969
/**
@@ -114,10 +114,10 @@ These are read-only. Updating their values has no effect on the tooltip.
114114

115115
```jsx
116116
import { useRef } from 'react';
117-
import { Tooltip, TooltipImperativeProps } from 'react-tooltip';
117+
import { Tooltip, TooltipRefProps } from 'react-tooltip';
118118

119-
const tooltipRef1 = useRef<TooltipImperativeProps>(null)
120-
const tooltipRef2 = useRef<TooltipImperativeProps>(null)
119+
const tooltipRef1 = useRef<TooltipRefProps>(null)
120+
const tooltipRef2 = useRef<TooltipRefProps>(null)
121121

122122
<a id="my-element">
123123
◕‿‿◕

0 commit comments

Comments
 (0)