2.4.1 โ€ข Published 12 months ago

react-hot-toast v2.4.1

Weekly downloads
14,421
License
MIT
Repository
github
Last release
12 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 yarn

yarn 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@redwoodjs/web@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-2mojito-uigotcha-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-pluginouc-ui-kitoverwind-uiparking-lot-ayalaparodia-corenotstratareactmf-front-rendermeow-cmsparispixel-design-systemplayer-dntpjblog-theme-defaultoialbert-uiopenassistants-ui-testingonelinefetchopenbox-librarypopp-walletpollination-react-ioportal-gamutportal-material-ui-componentsportal-v4-matine-libportal-v4-react-ariaportal-v4-ui-libportal-v4-libnode-images-compress-climtworkermtxtrpcv2mtcrawleemrdxtrmuthaka-next-startermy-test-uikitqccomponentsapple-redesign-clientviniscosds-prsm-assistlyteuimtxcms-frontmrdxtr-sherlockhasura-component-libhasura-console-component-library-1hadmeangd-test-chainlit-uigrowpaygotcha-captchagpt-gem-findergtomy-libforum3frontend-utils-coregas-formgatauapagamepay-client-reactgb-rollerholdco-component-librarygmfive-uigetmepizza-dappghost-design-systemhello-world-1807junto-design-systemkyte-sdk
2.4.1

12 months ago

2.4.0-beta.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.3.0-beta.1

2 years ago

2.3.0-beta

2 years ago

2.2.0

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

2.0.0-beta.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.1.2

3 years ago