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

[Bug]: Toast component is deprecated

Open victorchendra02 opened this issue 7 months ago • 3 comments

Reproduction

pnpm create nuxt

Describe the bug

So, I tried to use Toast but first installing it from here https://www.shadcn-vue.com/docs/components/toast.html#run-the-following-command, but it says:

The toast component is deprecated. Use the sonner component instead.

And no component added to my directory.

If so, I think it's better to mention it in the documentation or maybe remove it?

System Info

- nuxt: `3.16.2`
- shadcn-nuxt: `2.0.0`
- tailwind: `4.1.2`

Contributes

  • [ ] I am willing to submit a PR to fix this issue
  • [ ] I am willing to submit a PR with failing tests

victorchendra02 avatar Apr 09 '25 08:04 victorchendra02

Toast is now deprecated with TailwindCSS V4 version. You need to use Sonner instead. https://www.shadcn-vue.com/docs/components/sonner.html

But now, if you want to custom this design : https://github.com/xiaoluoboding/vue-sonner you have all informations here.

SwartZCoding avatar Apr 09 '25 09:04 SwartZCoding

Yeah I see, I think that it's better to inform this info in the documentation in section Toast also.

victorchendra02 avatar Apr 10 '25 03:04 victorchendra02