react-offline-notify

1.0.6 • Public • Published

React Offline Notify

A toast notifier to indicate if there's no internet connectivity.

Usage

import ConnectionToast from 'react-offline-notify'

Props

Prop Type Description Default
onlineText String message when user is back online Online
offlineText String message when user goes offline Offline
timeout Number(ms) time before notification disappears when user is online 3000ms

Package Sidebar

Install

npm i react-offline-notify

Weekly Downloads

7

Version

1.0.6

License

ISC

Unpacked Size

39.1 kB

Total Files

10

Last publish

Collaborators

  • smazad1212