Add interface for Tippy component ref
See original GitHub issueHi, if I want to use the Tippy component exported from the library via template ref, I can’t tell TS compiler which type the ref uses. Looking into source code of the library, I’ve created an interface which would solve this issue:
import { Instance } from 'tippy.js';
import { TippyContent, TippyOptions } from 'vue-tippy';
interface TippyRef {
contentElem: Element;
destroy(): void;
disable(): void;
elem: Element;
enable(): void;
hide(): void;
mount(): void;
mounted: boolean;
refresh(): void;
refreshContent(): void;
setContent(value: TippyContent): void;
setProps(value: TippyOptions): void;
show(): void;
tippy: Instance;
unmount(): void;
}
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
forwardRef with changing children components #194 - GitHub
I have a component that wraps Tippy called Tooltip in my app. How is it possible to implement ref forwarding when different child...
Read more >reactjs - TS2739: Unable to consume custom Tippy wrapper ...
I started integrating typescript in both these libraries. Here is Tippy wrapper naming Tippy.tsx in component library. import Tooltip, { ...
Read more >Accessibility | Tippy.js
If vital functionality or information is contained within them, they should be accessible to keyboard and touch inputs so that users who navigate...
Read more >React component for Tippy.js - Morioh
It is an abstraction over Popper that provides the logic and optionally the styling involved in all types of elements that pop out...
Read more >Oracle APEX - Low code solution for Tooltip using tippy.js
Add tippy.js library files to application globally. You need following files added to your application's User Interface page of JavaScript ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
plz can u try
v6.0.0-alpha.63
?plz, can u try
v6.0.0-alpha.62
?