Skip to content

Commit

Permalink
docs: update to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 8, 2024
1 parent 5695931 commit 44d0108
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ New versions:
|Old|New|Target
|---|---|---|
|v-tooltip v3|floating-vue v1|Vue 2|
|v-tooltip v4|floating-vue v2|Vue 3|
|v-tooltip v4|floating-vue v5|Vue 3|

[💚️ Become a Sponsor](https://github.com/sponsors/Akryum)

Expand Down
24 changes: 12 additions & 12 deletions docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| floating-vue | NPM Tag | Vue compatibility |
| ------------ | ------- | ----------------- |
| 2.x | latest | 3.x |
| 5.x | latest | 3.x |
| 1.x | vue2 | 2.x |

## Node
Expand Down Expand Up @@ -38,16 +38,16 @@ Or use the directives and components directly:
```javascript
import {
// Directives
VTooltip,
VClosePopper,
vTooltip,
vClosePopper,
// Components
Dropdown,
Tooltip,
Menu
} from 'floating-vue'

app.directive('tooltip', VTooltip)
app.directive('close-popper', VClosePopper)
app.directive('tooltip', vTooltip)
app.directive('close-popper', vClosePopper)

app.component('VDropdown', Dropdown)
app.component('VTooltip', Tooltip)
Expand Down Expand Up @@ -84,8 +84,8 @@ Or use the directives and components directly:

```javascript
// Directives
app.directive('tooltip', FloatingVue.VTooltip)
app.directive('close-popper', FloatingVue.VClosePopper)
app.directive('tooltip', FloatingVue.vTooltip)
app.directive('close-popper', FloatingVue.vClosePopper)
// Components
app.component('VDropdown', FloatingVue.Dropdown)
app.component('VTooltip', FloatingVue.Tooltip)
Expand All @@ -94,7 +94,7 @@ app.component('VMenu', FloatingVue.Menu)

## Vue 2

floating-vue v2 is compatible with Vue 3. For Vue 2, use floating-vue v1 instead:
floating-vue v5 is compatible with Vue 3. For Vue 2, use floating-vue v1 instead:


::: code-group
Expand Down Expand Up @@ -128,16 +128,16 @@ Or use the directives and components directly:
import Vue from 'vue'
import {
// Directives
VTooltip,
VClosePopper,
vTooltip,
vClosePopper,
// Components
Dropdown,
Tooltip,
Menu
} from 'floating-vue'

Vue.directive('tooltip', VTooltip)
Vue.directive('close-popper', VClosePopper)
Vue.directive('tooltip', vTooltip)
Vue.directive('close-popper', vClosePopper)

Vue.component('VDropdown', Dropdown)
Vue.component('VTooltip', Tooltip)
Expand Down

0 comments on commit 44d0108

Please sign in to comment.