Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why so many issues for such as simple plugin? #51

Open
4 tasks done
dvlden opened this issue Feb 22, 2024 · 5 comments
Open
4 tasks done

Why so many issues for such as simple plugin? #51

dvlden opened this issue Feb 22, 2024 · 5 comments

Comments

@dvlden
Copy link

dvlden commented Feb 22, 2024

Everything below tested in Nuxt 3.

  • Example to define it as a plugin leads to hydration missmatch, even when <Toaster /> is used within <ClientOnly> component
  • Using headless option toast.custom(VSonner) does not really do anything
  • Cannot customize CSS Properties (variables) without using !important
  • Passing unstyled to toastOptions does not do anything

Also, if someone managed to make headless option work, does it receive props or something to get idea if it's warning/error/success/info, what's the title/description, etc? Otherwise, from the docs, headless options seems more like static toast, rather than headless (fully customizable)

Please let me know how to make it work properly?

@wobsoriano
Copy link
Contributor

unstyled prop is there but is actually not implemented internally

@BayBreezy
Copy link

@dvlden You can look how I customized this package a little in my lib: https://ui-thing.behonbaker.com/components/vuesonner

The implementation can be found here: https://github.com/BayBreezy/ui-thing/blob/main/components/Ui/VueSonner.client.vue

Hopefully this answers a few of your questions.

@rust-floppy
Copy link

rust-floppy commented Mar 14, 2024

<< Created a new issue, thanks for the quick reply to @warflash ! >>

@warflash
Copy link

@idk-floppy Would be nice if you could open a seperate issue and put a reproduction of your code/issue there.
pnpm is not a typo in the readme fyi - it's a faster alternative to npm

@rust-floppy
Copy link

@idk-floppy Would be nice if you could open a seperate issue and put a reproduction of your code/issue there. pnpm is not a typo in the readme fyi - it's a faster alternative to npm

Okay, thank you for the quick answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants