Skip to content

Commit 58fbb50

Browse files
committed
Update README.md
1 parent 1365e15 commit 58fbb50

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

README.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,40 +56,22 @@ app.mount('#app')
5656
<button v-tippy="'Hello!'">Tippy!</button>
5757
</template>
5858

59-
<!--
60-
The below is optional in case you
61-
installed the plugin globally
62-
-->
63-
<script>
64-
import { directive } from 'vue-tippy'
65-
66-
export default {
67-
directives: {
68-
tippy: directive,
69-
},
70-
}
59+
<script setup>
60+
import { directive as VTippy } from 'vue-tippy'
7161
</script>
7262
```
7363

7464
### Vue Component
7565

7666
```html
7767
<template>
78-
<tippy content="Hi!">
68+
<Tippy content="Hi!">
7969
<button>Tippy!</button>
80-
</tippy>
70+
</Tippy>
8171
</template>
8272

83-
<!--
84-
The below is optional in case you
85-
installed the plugin globally
86-
-->
87-
<script>
88-
import { Tippy } from 'vue-tippy'
89-
90-
export default {
91-
components: [Tippy],
92-
}
73+
<script setup>
74+
import { Tippy } from 'vue-tippy'
9375
</script>
9476
```
9577

0 commit comments

Comments
 (0)