studiobakers / react-ui-toolkit

Bakers Studio's React-based UI Toolkit
MIT License
15 stars 2 forks source link

fix(toast-provider): Allow control of autoClose via ToastProvider #98

Closed edizcelik closed 3 years ago

edizcelik commented 3 years ago

Some projects might want Toasts to not autoClose by default. This adds a prop to ToastProvider that allows this functionality. You can still pass autoClose: true with toast.display callback to override ToastProvider's autoCloseToasts prop value.