What this thread does
As of November 2026, choose the toast library that fits your existing UI stack. Do first: inspect the installed toaster and shadcn base: Radix Sonner and Base UI Toast have different APIs.
The question
A project can accumulate competing toast implementations. Start with the library already installed.
How to choose
- Already on shadcn/ui: follow the project’s base. The Radix docs offer Sonner; the Base UI docs offer Toast, installed with
pnpm dlx shadcn@latest add toast. Do not assume Sonner is the default for every shadcn project. Sonner’s author also publishes an agent skill; see the Sonner skill thread. - Already on Mantine: use its own notifications package (the monorepo ships
@mantine/notifications) rather than a second library. - Using Base UI primitives: its Toast component keeps one dependency set.
- Need heavy configuration, many positions and stacking rules: react-toastify.
- Want a simple
toast()andToastersetup: react-hot-toast. - Custom shell: Sonner's
toast.customis headless and keeps stacking and swipe.
Prompt wording
Suggested prompt: Read components.json and the installed toast implementation first. Keep the existing library. For a new setup, follow our shadcn base’s toast guide. Do not add a second toast library.
Limits
The choice guide is a design recommendation, not a bundle-size, accessibility or behavior comparison.
Sources
- shadcn Radix Sonner and Base UI Toast.
- Sonner, react-toastify, react-hot-toast.
- Mantine notifications and Base UI Toast primitives.
- Sonner examples and toast renderer for custom content, stacking and swipe behavior.
- shadcn/ui repository.
Started from a post by @Fabulous_Variety_256, packaged by the editor. Original post