woby-toast
TypeScript icon, indicating that this package has built-in type declarations

2.4.7 • Public • Published

Woby-Toast

Ported from react-hot-toast


Smoking hot Notifications for React.
Lightweight, customizable and beautiful by default.

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 woby-toast

With NPM

npm install woby-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 'woby-toast';

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

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

Package Sidebar

Install

npm i woby-toast

Weekly Downloads

3

Version

2.4.7

License

MIT

Unpacked Size

127 kB

Total Files

47

Last publish

Collaborators

  • wongchichong