An open API service indexing awesome lists of open source software.

https://github.com/karkipy/react-time-expiry

A react module component for time expiry warning after a session is about to end.
https://github.com/karkipy/react-time-expiry

node-module

Last synced: 2 months ago
JSON representation

A react module component for time expiry warning after a session is about to end.

Awesome Lists containing this project

README

          

# react-time-expiry
A react module component for time expiry warning after a session is about to end.

## Install

```sh
npm install --save react-time-expiry
```

**Paramaters :**

- time = time in minutes for the modal to last, default is 60 seconds
- onClickOk = what to do when ok is clicked, will dismiss the modal after the function call
- onCancel = what to do when cancel is clicked or it is clicked outside the component, will dismiss the modal after the function call
- Message = optional message after warning of some seconds remaining

## Usage

No Params
```javascript
import SessionAlert from 'react-time-expiry';


```

With params
```javascript
import SessionAlert from 'react-time-expiry';


```

## Output

No Params

screen shot 2019-01-20 at 9 33 41 pm

With params

screen shot 2019-01-20 at 9 35 44 pm