Skip to content

Commit

Permalink
docs: TooltipRefProps
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Nov 13, 2023
1 parent ae68615 commit f0b6e4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/examples/imperative-mode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interface TooltipImperativeCloseOptions {
delay?: number
}

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

```jsx
import { useRef } from 'react';
import { Tooltip, TooltipImperativeProps } from 'react-tooltip';
import { Tooltip, TooltipRefProps } from 'react-tooltip';

const tooltipRef1 = useRef<TooltipImperativeProps>(null)
const tooltipRef2 = useRef<TooltipImperativeProps>(null)
const tooltipRef1 = useRef<TooltipRefProps>(null)
const tooltipRef2 = useRef<TooltipRefProps>(null)

<a id="my-element">
◕‿‿◕
Expand Down

0 comments on commit f0b6e4c

Please sign in to comment.