@woby/toast
v2.4.13
Published
Smoking hot woby Notifications. Lightweight, customizable and beautiful by default.
Maintainers
Readme
@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/toastWith NPM
npm install @woby/toastBasic Example
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>
);
};