2.5.2 โ€ข Published 3 months ago

react-hot-toast v2.5.2

Weekly downloads
14,421
License
MIT
Repository
github
Last release
3 months ago

Features

  • ๐Ÿ”ฅ Hot by default
  • ๐Ÿ”ฉ Easily Customizable
  • โณ Promise API - Automatic loader from a promise
  • ๐Ÿ•Š Lightweight - less than 5kb including styles
  • โœ… Accessible
  • ๐Ÿคฏ Headless Hooks - Create your own with useToaster()

Installation

With pnpm

pnpm add react-hot-toast

With NPM

npm install react-hot-toast

Getting Started

Add the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast() from anywhere!

import toast, { Toaster } from 'react-hot-toast';

const notify = () => toast('Here is your toast.');

const App = () => {
  return (
    <div>
      <button onClick={notify}>Make me a toast</button>
      <Toaster />
    </div>
  );
};

Documentation

Find the full API reference on official documentation.

@moai/core@jvfmatos/templatecomponentclamav-desktop@thonlabs/ui@uponco/admin-uireact-e-nno-component@guruhotel/aura@kiva/ssirius-standalone@frontastic/componentscra-template-alexander-typescriptcra-template-boilerplate-iks@greener/ui@hangry/react-ui-kitcontus-mf-2gotcha-captcha-testgotcha-testreact-ts-form-gen-elementsdemandscience-ui@infinitebrahmanuniverse/nolb-react-hobinaryblox-react-corecomments-library-v2@pixiebrix/extensiondemotestpublishreact-mui-form-generatorsupport-worksuitecurecall-uimichaelangrivera-ts-rest@everything-registry/sub-chunk-2559aime-workflow-feedback2rebit-design-systemmaterio-mui-react-nextjs-admin-templatecard-statisticsrest-import-wavemaker-v2odinkitpivot-ui@oryxqa/sis-ui-kitnotion-wysiwyg@paras205/react-ts-startermedusa-admin-ui-fafss-voice-recorder-pluginvuexy-nextjs-admin-templatebwsoft-ui-componentsdonate3-sdk-ellenmy-test-uikit@perseides/admin-uiam-login-testcms-ui-templatept-crystal-olivetaras-package-testtask-error-tracer-by-habisynapse-react-clienttable-library-fliegentest-fuse-importertest-fuse-importer-3test-moleculestest-npm-test-2widgetsale-sdkwondermove-web-componentwm-component-testwakeflow-designwaleed-avocadowaleed-avocado-2waitherepackagesweathertrack-ui-libxmluistake-it-sdksubman-plugintemplate-geniusstorefront-icu_admin-uitesting_vite_all_casestesting_vite_for_routertest-se-2-debuggersupport-bob-reactsway-example-commonsth3-smart-typethistylvr-challenge-dsvisual-d-authv4tech-flayervendor-ui-alpha-v1vanilla-hot-toastvideo-connect-uiviteapp@canonical/rebac-admin@docsly/base@docsly/react@dofiltra/tailwind@clubmed/trident-ui@codehimalaya/auth_package@codehimalaya/authentication_service@creatibi/block-editor@crossmint/client-sdk-walletconnect@communi/chat-react@communi/editor@collectivexyz/ui@convertkit/design@conveyorhq/arrow-ds@cosmoau/ui@corca-ai/design-system@dashx/react
2.5.0

4 months ago

2.5.2

3 months ago

2.5.1

4 months ago

2.6.0-beta.0

4 months ago

2.4.1

2 years ago

2.4.0-beta.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.3.0-beta.1

3 years ago

2.3.0-beta

3 years ago

2.2.0

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

2.0.0-beta.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.1.2

4 years ago