Search documentation, components, and switch theme.
Toast notification component.
npx shadcn@latest add @formance/sonner
npm install sonner next-themes
SonnerToaster
import { SonnerToaster } from '@/components/ui/sonner' export default function RootLayout({ children }) { return ( <html> <body> {children} <SonnerToaster /> </body> </html> ) }
import { toast } from 'sonner'
toast('Transaction recorded') toast.success('Payment processed') toast.error('Transfer failed') toast.warning('Low balance') toast.info('Connector syncing')