1.0.0 • Published 3 days ago

react-stacked-toast v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

🍞 react-stacked-toast

https://github.com/nhanluongoe/react-stacked-toast/assets/42910096/ad5cf539-0c47-4afb-a39b-6594a5337860

🔥 Features

  • 📦 Stackable: Toast notifications are able to stack up on top of each other

  • 🎯 Simple: Easy to use APIs with minimal setup

  • 🎨 Customizable: You can customize the toast notification by passing a React component

🏃 Getting started

Using npm:

npm i react-stacked-toast

Using yarn:

yarn add react-stacked-toast

📚 Usage

1. Add the Toaster component to the your application

import { Toaster } from 'react-stacked-toast';

const App = () => {
  return (
    <Toaster />
    // Other components
  );
};

2. Use the toast api to create a toast anywhere in your application

import { toast } from 'react-stacked-toast';

const Component = () => {
  const handleClick = () => {
    // Quickly make a toast
    toast('Here is your toast!');

    // Or need more customization
    toast({
      title: 'React Stacked Toast',
      description: 'Here is your toast!',
      icon: '🍞',
      ...
    });
  };

  return <button onClick={handleClick}>Show toast</button>;
};

🔧 API

Full documentation can be found here on react-stacked-toast.

🙏 Acknowledgements

This project is inspired by react-hot-toast

🪲 Report a bug or request a feature

If you find a bug or want to request a feature, please open an issue here

🌟 Support

If you like this project, please consider giving it a star on GitHub. It's a huge encouragement for me. Thank you!

🪪 LICENSE

License under MIT

1.0.0

3 days ago

0.1.0

1 month ago

0.0.8

2 months ago

0.0.7

3 months ago

0.0.6

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago