Replies: 9 comments 31 replies
-
Out of curiosity, how is the version 3 alpha going? We are in the process of migrating a legacy .NET application to utilize a Vue 3 front end and would love to utilize this component. I know you had mentioned that version 4 would be the release that would support Vue 3 and we were just wondering if you or the community had a timeline for the version 3 and 4 releases. Thanks for everything you do! |
Beta Was this translation helpful? Give feedback.
-
The Vue 3-compatible version is now available! You can install it using the
|
Beta Was this translation helpful? Give feedback.
-
Can I use npm to install the Vue3 version? Tried
but that doesn't seem to work. |
Beta Was this translation helpful? Give feedback.
-
@Akryum thanks for a great component! Just started a new vue3 project and added v-tooltip as mentioned above but even thought the text shows up I cannot set any global options and it appears unformatted and with a long delay to hide. Is there a way to fix this? What I have in my vue setup (Even without passing options I still get the same behaviour/display): import VTooltip from "v-tooltip";
...
app.use(VTooltip, {
defaultDelay: { show: 500, hide: 500 },
classes: "bg-neutral-700 opacity-75 rounded-md text-white",
});
... |
Beta Was this translation helpful? Give feedback.
-
Hi @Akryum I think there might be a bug, or I don't get how I'm supposed to make it work with the new version (migrated from vue 2 to vue 3, so I had to migrate v-tooltip as well). Env for testing: vite default template with vue 3 with compat build (compatConfig{MODE: 3}), tailwindcss and v-tooltip@vue3 (installed in vue with app.use(VTooltip))
throws the following error on mounting : Uncaught TypeError: Cannot read property 'tooltip' of undefined Sneak peak at this line: Note that if I replace "shown: isOpen, triggers: ['']" with "triggers: ['hover']" it works (but this is not what I want to do) Thanks in advance ! EDIT: I managed to get the result I wanted with triggers: ['hover'] and the fact that nothing shows up if the tooltip content is an empty string. v-tooltip={content: tooltipText, [...]} seems hacky though. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi, @Akryum I was migrating a It seems that the bug is in lifecycle hooks, then I did a single-step debugging, and then I found that it threw an error in the What's more, I noticed that in the dom tree, the html structure is generated successfully, but the text content is not generated in the dom tree. |
Beta Was this translation helpful? Give feedback.
-
The Migration guide (wip) is now available here! |
Beta Was this translation helpful? Give feedback.
-
Hello @Akryum is there any news about the v3 release ? Is it still under beta version ? Thank you :) |
Beta Was this translation helpful? Give feedback.
-
v-tooltip has been renamed to floating-vue and now uses floating-ui instead of popperjs.
The package has been renamed from
v-tooltip
tofloating-vue
. You can find the new changelog for both v1 (for Vue 2) and v2 (for Vue 3) here. The changelog is currently not pushed to GitHub Releases.New versions:
Original post:
Version 3 will be a big release. Apart from all the refactoring and code cleaning that went into it, changes and migration paths need to be documented. 📜
I hope you will like the new version (despite all the breaking changes) and that it will be you ultimate tooltips and dropdowns library!
Notes
Vue 3 support will be implemented in V4 which will be released in parallel to V3 so you can choose the correct version depending on you Vue version.It's available now! This will prevent me from polluting the code with conditions and hacks to make it work on both versions simultaneously.Here is a preview of the most visible implemented changes (checkboxes are for docs):
Breaking changes
Migration guide
@popperjs/core
){ name: 'overflow', enabled: true }
modifiers
proptrigger
renamed totriggers
and now must be an array (use empty array instead of'manual'
)boundariesElement
prop renamed toboundary
open
prop renamed toshown
openGroup
prop renamed toshowGroup
<VDropdown>
instead of<v-popover>
popover
was renamed topopper
isOpen
slot prop renamed toshown
offset
prop must now be an array:[skidding, distance]
v-popper
prefix and in a BEM-like fashion to help preventing conflictspopoverClass
,popoverBaseClass
,popoverWrapperClass
,popoverArrowClass
,popoverInnerClass
,openClass
v-close-popover
directive has been renamed tov-close-popper
aria-describedby
attribute are now applied on your elements directly instead of an internaldiv
width: max-content
by default to use the content size instead of the page widthv-tooltip
directive now uses theTooltipDirective
component (usingPopper
component internally), which means that there are no longer separate APIs between the components and the directive (the directive has a few additional props though) and you should now be using the components props on the directive object when neededv-tooltip
directive options:classes
,targetClasses
,template
,arrowSelector
,innerSelector
,hideOnTargetClick
(replaced byhideTriggers
),loadingClass
New
strategy
propmodifiers
propshowTriggers
prophideTriggers
proppopperTriggers
proppopperShowTriggers
proppopperHideTriggers
propinstantMove
propVDropdown
component withdropdown
default themeVTooltip
component with thetooltip
default themeVMenu
component with themenu
default theme extending thedropdown
theme, with hover trigger on both the target and the popper itself<Popper>
,<PopperContent>
,<PopperWrapper>
components and slotsBeta Was this translation helpful? Give feedback.
All reactions