vue-sonner icon indicating copy to clipboard operation
vue-sonner copied to clipboard

Why so many issues for such as simple plugin?

Open dvlden opened this issue 1 year ago • 5 comments

Everything below tested in Nuxt 3.

  • [x] Example to define it as a plugin leads to hydration missmatch, even when <Toaster /> is used within <ClientOnly> component
  • [x] Using headless option toast.custom(VSonner) does not really do anything
  • [x] Cannot customize CSS Properties (variables) without using !important
  • [x] 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?

dvlden avatar Feb 22 '24 17:02 dvlden

unstyled prop is there but is actually not implemented internally

wobsoriano avatar Feb 28 '24 20:02 wobsoriano

@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.

BayBreezy avatar Feb 29 '24 04:02 BayBreezy

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

rust-floppy avatar Mar 14 '24 16:03 rust-floppy

@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

warflash avatar Mar 14 '24 17:03 warflash

@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!

rust-floppy avatar Mar 14 '24 17:03 rust-floppy