# rsba-notification

> Made with create-react-library

Latest version **0.0.1** (published 2020-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install rsba-notification
pnpm add rsba-notification
yarn add rsba-notification
bun add rsba-notification
```

## 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.0.1 |
| Published | 2020-12-15 |
| First published | 2020-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 76.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Feujo |
| Maintainers | feujo |

## Links

- npm: https://www.npmjs.com/package/rsba-notification
- Repository: https://github.com/Feujo/rsba-notification
- npm.io page: https://npm.io/package/rsba-notification

## Dependencies (1)

- [izitoast](https://npm.io/package/izitoast.md) ^1.4.0

## Recent versions

- 0.0.1 (latest) — 2020-12-15

## README

# rsba-notification

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/rsba-notification.svg)](https://www.npmjs.com/package/rsba-notification) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save rsba-notification
```

## settings
``` tsx
type IziToastPosition = 'bottomRight' | 'bottomLeft' | 'topRight' | 'topLeft' | 'topCenter' | 'bottomCenter' | 'center';
type IziToastTransitionIn = 'bounceInLeft' | 'bounceInRight' | 'bounceInUp' | 'bounceInDown' | 'fadeIn' | 'fadeInDown' | 'fadeInUp' | 'fadeInLeft' | 'fadeInRight' | 'flipInX';
type IziToastTransitionOut = 'fadeOut' | 'fadeOutUp' | 'fadeOutDown' | 'fadeOutLeft' | 'fadeOutRight' | 'flipOutX';
type immediateTypes = 'info' | 'error' | 'warning' | 'success' | 'question';
```

## Usage

```tsx
import React, {useEffect} from 'react'

import {defaultNotification, useNotification, notification } from 'rsba-notification'

const App = () => {
  const otherShowMessage = useNotification({position: 'topRight', message: 'Hi, how it is going'})

  useEffect(() => {
    notification('info', {
      message: 'Hi, how it is going',
      position: 'topRight'
    })
    defaultNotification("I am a default notification")
  });

  return (
    <div>
      <button onClick={() => otherShowMessage()} >Show</button>
    </div>
  )
};

export default App
```


## License

MIT © [Feujo](https://github.com/Feujo)

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