Skip to content

Commit f075948

Browse files
authored
Updated browser installation guide
- updated module versions to latest ones - added required dependencies
1 parent 729624a commit f075948

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/guide/installation.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,23 @@ import 'floating-vue/dist/style.css'
6262

6363
## Browser
6464

65-
Include `dist/floating-vue.min.js` in the page:
65+
First, include scripts for dependencies: `@floating-ui/core` and `@floating-ui/dom`:
6666

6767
```html
68-
<script src="https://unpkg.com/floating-vue@^2.0.0-beta.1"></script>
68+
<script src="https://unpkg.com/@floating-ui/core@1/dist/floating-ui.core.umd.js"></script>
69+
<script src="https://unpkg.com/@floating-ui/dom@1/dist/floating-ui.dom.umd.js"></script>
70+
```
71+
72+
Include `dist/floating-vue.umd.js` in the page:
73+
74+
```html
75+
<script src="https://unpkg.com/floating-vue@5/dist/floating-vue.umd.js"></script>
6976
```
7077

7178
Also include the default CSS:
7279

7380
```html
74-
<link rel="stylesheet" href="https://unpkg.com/floating-vue@^2.0.0-beta.1/dist/style.css" />
81+
<link rel="stylesheet" href="https://unpkg.com/floating-vue@5/dist/style.css" />
7582
```
7683

7784
Install the plugin into your app:

0 commit comments

Comments
 (0)