Update README.md

This commit is contained in:
Georges KABBOUCHI
2023-12-25 15:53:42 +02:00
parent 1365e151fd
commit 58fbb50162
+6 -24
View File
@@ -56,18 +56,8 @@ app.mount('#app')
<button v-tippy="'Hello!'">Tippy!</button> <button v-tippy="'Hello!'">Tippy!</button>
</template> </template>
<!-- <script setup>
The below is optional in case you import { directive as VTippy } from 'vue-tippy'
installed the plugin globally
-->
<script>
import { directive } from 'vue-tippy'
export default {
directives: {
tippy: directive,
},
}
</script> </script>
``` ```
@@ -75,21 +65,13 @@ app.mount('#app')
```html ```html
<template> <template>
<tippy content="Hi!"> <Tippy content="Hi!">
<button>Tippy!</button> <button>Tippy!</button>
</tippy> </Tippy>
</template> </template>
<!-- <script setup>
The below is optional in case you import { Tippy } from 'vue-tippy'
installed the plugin globally
-->
<script>
import { Tippy } from 'vue-tippy'
export default {
components: [Tippy],
}
</script> </script>
``` ```