File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,7 @@ pnpm build:dev
111
111
``` html
112
112
<!-- App.vue -->
113
113
<template >
114
- <ClientOnly >
115
- <Toaster />
116
- </ClientOnly >
114
+ <Toaster />
117
115
<button @click =" () => toast('My first toast')" >Render a toast</button >
118
116
</template >
119
117
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <ClientOnly >
4
- <Toaster position =" top-center" />
5
- </ClientOnly >
3
+ <Toaster position =" top-center" />
6
4
7
5
<button @click =" $toast('Render a toast')" >Render a toast</button >
8
6
</div >
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ const module: NuxtModule<ModuleOptions> = defineNuxtModule<ModuleOptions>({
24
24
addComponent ( {
25
25
name : 'Toaster' ,
26
26
export : 'Toaster' ,
27
- filePath : 'vue-sonner'
27
+ filePath : 'vue-sonner' ,
28
+ mode : 'client'
28
29
} )
29
30
30
31
addPlugin ( {
You can’t perform that action at this time.
0 commit comments