Skip to content

Commit 27ce679

Browse files
marcus-herrmannmorkro
authored andcommitted
Update to Vue3: Update readme with Vue3 installation; build
1 parent 6af60ad commit 27ce679

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,23 @@ npm install vue-a11y-dialog
2020

2121
In your `main.js` application file, install the component:
2222

23+
### In Vue 2
2324
```js
2425
import VueA11yDialog from "vue-a11y-dialog";
2526

2627
Vue.use(VueA11yDialog);
2728
```
2829

30+
### In Vue 3
31+
```js
32+
import { createApp } from 'vue'
33+
import App from './App.vue'
34+
35+
import VueA11yDialog from "vue-a11y-dialog";
36+
37+
createApp(App).use(VueA11yDialog).mount('#app')
38+
```
39+
2940
Then use it as follows:
3041

3142
```html

0 commit comments

Comments
 (0)