GithubHelp home page GithubHelp logo

damikun / react-toast Goto Github PK

View Code? Open in Web Editor NEW
80.0 3.0 16.0 2.56 MB

Custom push notification (Toast) implementation under React + stayed by TailwindCSS.

Home Page: https://damikun.github.io/React-Toast/

License: MIT License

JavaScript 7.15% HTML 2.08% CSS 5.08% TypeScript 85.69%
react-toast react-toast-notifications toast notifications react-notification react-push-notification context-api-react tailwind-toast react

react-toast's Introduction

react-toast's People

Contributors

damikun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-toast's Issues

Could you add a license

Hi @damikun,

We plan to use your awesome library in our project but haven't found any license in this Repo. Could you add one so it's clear if this library can be used for free or not. Thanks ๐Ÿ™

Awesome component

Not an issue, just want to say that this toast/notification component looks awesome and I'm looking forward to use when its complete! Keep up the good work! ๐Ÿ˜„

There is no exported ToastProvider from 'react-toast', neither default nor named

Describe the bug
There is no exported ToastProvider from 'react-toast', neither default nor named.

To Reproduce
Steps to reproduce the behavior:

  1. install: yarn add react-toast
  2. add import ToastProvider from 'react-toast', import { ToastProvider } from 'react-toast'
  3. compile the project
  4. see the error that ToastProvider is not being exported

Expected behavior
To be able to follow your main README we need to able to import ToastProvider.

Desktop (please complete the following information):

  • OS: MacOS BigSur

Additional context
I have checked the node_modules/react-toast folder. This is what is being exported from your NPM-package:

export { default as ToastContainer } from './ToastContainer';
export { toast } from './toast';

Improvements

  • Regarding the interface that the ToastProvides has I recommend dropping the push prefix, so instead of pushError it would be just error.
  • It seems that having an undefined toast object doesn't make sense. So to avoid toast?. I recommend fixing that.
  • Importing font-awesome for just 4 icons seems like a heavy dependency to have.
  • To make custom Toast I recommend expecting a Toast component in the ToastProvider, this way the implementation isn't tied to any toast design.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.