Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

v4.0.0

Compare
Choose a tag to compare
@anmdotdev anmdotdev released this 24 Sep 20:25
· 37 commits to master since this release
b891e4d
  • 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.