Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons
4.2.3
4.2.2
4.2.1
v4.1.3
v4.1.1
4.1.0
toastContainerID
. This enables specifying the id of the parent dom element, to which the toast is mounted as a child. #274.0.0
Breaking Change
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.
v3.2.2