Beautiful toast notifications with pill-to-card animations, spring physics, and zero dependencies.
Click any card below. Change the theme and position to see how it adapts.
One import. One function call. That's it.
popt.success('Event saved!') popt.error({ title: 'Payment declined', description: 'Card ending in 4242.' })
const ok = await popt.confirm({ title: 'Delete item?', confirmText: 'Delete', cancelText: 'Keep it' }) // ok === true or false
popt.promise(fetch('/api/book'), { loading: 'Booking...', success: 'Confirmed!', error: 'Failed' })
popt.init({ theme: 'light', // dark | light | auto position: 'bottom-right', maxToasts: 5 })
No config needed. No extra packages. Just works.