Replies: 1 comment
-
|
@Ericlm Did you find a solution? I dont care much about <template>
<ToastProvider>
<AnimatePresence>
<ToastRoot
v-for="notification of notificationsStore.items"
:key="notification.id"
class="bg-white rounded-lg shadow-lg p-3"
as-child
>
<Motion
:initial="{ opacity: 0 }"
:animate="{ opacity: 1 }"
:exit="{ opacity: 0 }">
<ToastTitle class="mb-1 font-medium leading-tight">
{{ notification.title }}
</ToastTitle>
<ToastDescription>
{{ notification.description }}
</ToastDescription>
</Motion>
</ToastRoot>
</AnimatePresence>
<ToastViewport class="fixed bottom-2 right-2 flex flex-col gap-2 w-78 " />
</ToastProvider>
</template> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently having issues with the Toast component because it closes without any exit animation. The only way I make it works is by forcing the mounting of the
ToastRootcomponent like :But I would prefer it to work without forcing the rendering of the toast root. How can I do that ?
Beta Was this translation helpful? Give feedback.
All reactions