Skip to content

Commit 5725fdc

Browse files
committed
update docs for supporting Vue 3.0
1 parent 7a8e482 commit 5725fdc

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ features:
3838

3939
## Install
4040

41+
### Vue 3.0
42+
43+
NPM:
44+
45+
```bash
46+
npm install vue-final-modal@next --save
47+
```
48+
49+
Yarn:
50+
51+
```bash
52+
yarn add vue-final-modal@next
53+
```
54+
55+
### Vue 2.x
56+
4157
NPM:
4258

4359
```bash
@@ -55,7 +71,7 @@ yarn add vue-final-modal
5571
1. Import and register the modal component.
5672

5773
```js
58-
import { VueFinalModal } from 'vue-final-modal/lib'
74+
import { VueFinalModal } from 'vue-final-modal'
5975

6076
export default {
6177
components: {

docs/content/en/index.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,27 @@ If you need a highly customizable modal component for Vue.js, `Vue Final Modal`
4343

4444
## Installation
4545

46+
### Vue 3.0
47+
48+
<code-group>
49+
<code-block label="Yarn" active>
50+
51+
```bash
52+
yarn add vue-final-modal@next
53+
```
54+
55+
</code-block>
56+
<code-block label="NPM">
57+
58+
```bash
59+
npm install vue-final-modal@next
60+
```
61+
62+
</code-block>
63+
</code-group>
64+
65+
### Vue 2.0
66+
4667
<code-group>
4768
<code-block label="Yarn" active>
4869

@@ -65,7 +86,7 @@ npm install vue-final-modal
6586
#### 1. Import and register the modal component.
6687

6788
```js
68-
import { VueFinalModal } from 'vue-final-modal/lib'
89+
import { VueFinalModal } from 'vue-final-modal'
6990

7091
export default {
7192
components: {

0 commit comments

Comments
 (0)