2.4.7 • Published 1 year ago

woby-toast v2.4.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Woby-Toast

Ported from react-hot-toast

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>
  );
};
2.4.7

1 year ago

2.4.2

1 year ago

2.4.4

1 year ago

2.4.1

2 years ago