diff --git a/packages/core/src/components/Noti.vue b/packages/core/src/components/Noti.vue index 6178d2c..83e1e25 100644 --- a/packages/core/src/components/Noti.vue +++ b/packages/core/src/components/Noti.vue @@ -1,8 +1,11 @@ @@ -29,10 +36,14 @@ function callNoti() {
- - +
+ + +
@@ -53,4 +64,9 @@ function callNoti() { .logo.vue:hover { filter: drop-shadow(0 0 2em #42b883aa); } +.button-group { + display: flex; + gap: 1em; + margin-top: 1em; +} diff --git a/playground/src/main.ts b/playground/src/main.ts index 05f7daa..ea0d640 100644 --- a/playground/src/main.ts +++ b/playground/src/main.ts @@ -1,6 +1,14 @@ import { NotiPlugin } from '@vue3-noti/core' +import type { NotiOptions } from '@vue3-noti/core' import { createApp } from 'vue' import './style.css' import App from './App.vue' -createApp(App).use(NotiPlugin).mount('#app') +const notiOptions: NotiOptions = { + message: 'Hello', + type: 'success', + duration: 1000, + position: 'top-right', +} + +createApp(App).use(NotiPlugin, notiOptions).mount('#app')