Skip to content

sande265/react-snackbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Snackbar

React { Snackbar } is a package for showing messages or popups.

Installation

Use the package manager yarn or NPM to install React Snackbar.

yarn install react-snackbar-popup

Usage

import Snackbar from 'react-snackbar-popup'

const [showSnackbar, setShowSnackbar] = useState(false);

const handleSnackbar = () => {
    setShowSnackbar(false)
}

<Snackbar
    message={"Hello World"}
    type={'success'}
    duration={5000}
    closeAlert={e => handleSnackbar(e)}
    open={showSnackbar}
/>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Snackbar For React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published