Elegant, customizable notification system with multiple types, positions, and interactive features
Powered by Framer Motion for fluid entrance and exit animations
Add custom buttons and actions to notifications
6 different positioning options to fit your design
Configurable auto-close timing with manual override
// Basic usage
addToast({
type: 'success',
title: 'Success!',
message: 'Your action was completed successfully.',
duration: 5000
});
// With custom action
addToast({
type: 'info',
title: 'New Message',
message: 'You have a new message from John.',
action: {
label: 'View',
onClick: () => navigate('/messages')
},
duration: 0 // Persistent
});