- Tippy component + change content and props realtime using component ref:
-
-
-
-
-
-
- v-tippy:
-
-
-
-
-
- Singleton tippy with a transition:
-
-
-
-
-
-
-
-
- Singleton v-tippy with a transition:
-
-
-
-
-
-
-
+
\ No newline at end of file
+
diff --git a/playground/components/Button.vue b/playground/components/Button.vue
new file mode 100644
index 0000000..d81b15d
--- /dev/null
+++ b/playground/components/Button.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/playground/Counter.vue b/playground/components/Counter.vue
similarity index 79%
rename from playground/Counter.vue
rename to playground/components/Counter.vue
index e17b6e1..0a310b9 100644
--- a/playground/Counter.vue
+++ b/playground/components/Counter.vue
@@ -1,5 +1,7 @@
-
+
+
+
\ No newline at end of file
diff --git a/playground/main.ts b/playground/main.ts
index e51762f..aa47d92 100644
--- a/playground/main.ts
+++ b/playground/main.ts
@@ -1,10 +1,29 @@
// necessary for webpack
///
import { createApp } from 'vue'
+import { createRouter, createWebHistory } from 'vue-router'
import VueTippy from '../src'
-
+import "tippy.js/dist/tippy.css";
import App from './App.vue'
+import PageIndex from './pages/Index.vue'
+import PageNestedComponents from './pages/NestedComponents.vue'
+import Counter from './components/Counter.vue'
+import UiIcon from "./components/Icon.vue";
+
+const router = createRouter({
+ history: createWebHistory(),
+ routes :[
+ { path: '/', component: PageIndex },
+ { path: '/nested-components', component: PageNestedComponents },
+ ]
+})
+
+
const app = createApp(App)
+app.component('counter', Counter)
+app.component("ui-icon", UiIcon);
+
+app.use(router)
app.use(VueTippy, {
defaultProps: { placement: 'right' },
})
diff --git a/playground/pages/Index.vue b/playground/pages/Index.vue
new file mode 100644
index 0000000..3c6dc9f
--- /dev/null
+++ b/playground/pages/Index.vue
@@ -0,0 +1,383 @@
+
+
+ Tippy component + change content and props realtime using component ref:
+
+
+
+
+
+
+ v-tippy:
+
+
+
+
+
+ Singleton tippy with a transition:
+
+
+
+
+
+
+
+
+ Singleton v-tippy with a transition:
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/playground/pages/NestedComponents.vue b/playground/pages/NestedComponents.vue
new file mode 100644
index 0000000..6848ddb
--- /dev/null
+++ b/playground/pages/NestedComponents.vue
@@ -0,0 +1,40 @@
+
+