0.1.2 ā€¢ Published 2 years ago

react-connection-notification v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Notification component to display internet connection status

Prerequisites

  • node >=10

Previews

Install

react-connection-notification

Development

npm install

npm start

Run tests

npm run test

Usage

import ConnectionNotification from 'react-connection-notification'

<ConnectionNotification/>

Properties

NameTypeDefaultDescription
position'top-right' or 'top-left' or 'bottom-right' or 'bottom-left'bottom-leftposition of notification
hideDismissButtonBooleanfalsehide dismiss button of notification
hideIconBooleanfalsehide connection icon
onlineTextString"You are online now"Online status text
offlineTextString"You are offline now"Offline status text
onlineIconStringwifi-iconOnline status icon
offlineIconStringno-wifi-iconOffline status icon
durationNumber2000duration of notification. After duration, it will be hided
disableDurationBooleanfalseDisable duration and notification will be visible until user clicks dismiss button
styleObject{}Custom styles

Author

šŸ‘¤ Cem Karakurt

Show your support

Give a ā­ļø if this project helped you!