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.
- Host: GitHub
- URL: https://github.com/karkipy/react-time-expiry
- Owner: karkipy
- License: mit
- Created: 2018-03-12T07:39:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T00:21:39.000Z (over 3 years ago)
- Last Synced: 2026-03-24T04:35:53.715Z (3 months ago)
- Topics: node-module
- Language: JavaScript
- Size: 366 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

With params