Files
Momento/memento-note/components/ui/toast.tsx
Antigravity 19d0b2759a
Some checks failed
Deploy to Production / Build and Deploy (push) Has been cancelled
fix: toast position bottom-right pour ne pas bloquer la navigation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-05 21:27:07 +00:00

29 lines
653 B
TypeScript

'use client'
import { Toaster as SonnerToaster, toast as sonnerToast } from 'sonner'
// Re-export toast functions from Sonner
export const toast = sonnerToast
// Toaster component with custom styles
export function Toaster() {
return (
<SonnerToaster
position="bottom-right"
expand={false}
richColors
closeButton
duration={3000}
className="toaster"
toastOptions={{
classNames: {
toast: 'toast pointer-events-auto',
description: 'toast-description',
actionButton: 'toast-action-button',
closeButton: 'toast-close-button',
},
}}
/>
)
}