# react-snackbar-popup

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

Latest version **0.1.13** (published 2022-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-snackbar-popup
pnpm add react-snackbar-popup
yarn add react-snackbar-popup
bun add react-snackbar-popup
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.13 |
| Published | 2022-01-28 |
| First published | 2022-01-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sandesh Singh |
| Maintainers | sande265 |
| Keywords | React Snackbar, react snackbar comnponent, snackbar |

## Links

- npm: https://www.npmjs.com/package/react-snackbar-popup
- Repository: https://github.com/sande265/react-snackbar
- Homepage: https://github.com/sande265/react-snackbar#readme
- Issues: https://github.com/sande265/react-snackbar/issues
- npm.io page: https://npm.io/package/react-snackbar-popup

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^17.0.2
- [core-js](https://npm.io/package/core-js.md) ^3.20.3
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.16.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.1.13 (latest) — 2022-01-28
- 0.1.12 — 2022-01-28
- 0.1.11 — 2022-01-28
- 0.1.10 — 2022-01-28

## README

# React Snackbar

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

## Installation

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

```bash
yarn install react-snackbar-popup
```

## Usage

```python
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](https://sandeshsingh.com.np/licenses/MIT)

---
_Source: https://npm.io/package/react-snackbar-popup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
