This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
v4.0.0
-
4.0.0
-
Breaking Change
- Hide the toast on Click
Now:
const { hide } = cogoToast.success('This is a success message.', { onClick: () => { hide(); }, };
Before:
cogoToast.success('This is a success message.', { onClick: (hide) => { hide(); }, };
-
Toast now always returns a promise, as opposed to before. See issue #28
-
Accessibility - Added a role of
status
by default. Configurable via options. Thanks @balazsorban44.
-