Open BatyaFeldman opened 5 months ago
I've added an optional duration, although I guess that doesn't fully solve this issue, some things can't be fully serialized through the network boundary like functions so onAutoClose could never work as you can't send functions through the network
Thanks for this super handy library! Expanding the ToastMessage schema to accommodate additional options would enhance its compatibility with
Sonner
,react-toastify
, and other toast libraries. Currently, any configuration beyondtype
,description
, andmessage
requires handling in the client, limiting customization when integrating the toaster at the root level.Enabling ToastMessage to accept more options would provide finer control with client-side toast libraries by allowing us to do something like: