-
Notifications
You must be signed in to change notification settings - Fork 92
/
index.html
36 lines (33 loc) · 985 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VueTippy v6</title>
<link
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
rel="stylesheet"
/>
</head>
<body>
<div id="app" class="h-screen flex justify-center items-center"></div>
<script src="https://unpkg.com/vue@3.0.0-rc.5/dist/vue.global.js"></script>
<script src="./dist/vue-tippy.global.js"></script>
<script>
const { createApp, h, ref } = Vue
const { useTippy } = VueTippy
createApp({
setup() {
const element = ref()
useTippy(element, {
content: 'Test',
})
return () => [
h('span', { ref: element }, 'HI!'),
h(VueTippy.Tippy, { content: 'test' }, 'HI2!'),
]
},
}).mount(document.querySelector('#app'))
</script>
</body>
</html>