Notification component to display internet connection status
- node >=10
npm install
npm start
npm run test
import ConnectionNotification from 'react-connection-notification'
<ConnectionNotification/>
Name | Type | Default | Description |
---|---|---|---|
position | 'top-right' or 'top-left' or 'bottom-right' or 'bottom-left' | bottom-left | position of notification |
hideDismissButton | Boolean | false | hide dismiss button of notification |
hideIcon | Boolean | false | hide connection icon |
onlineText | String | "You are online now" | Online status text |
offlineText | String | "You are offline now" | Offline status text |
onlineIcon | String | wifi-icon | Online status icon |
offlineIcon | String | no-wifi-icon | Offline status icon |
duration | Number | 2000 | duration of notification. After duration, it will be hided |
disableDuration | Boolean | false | Disable duration and notification will be visible until user clicks dismiss button |
style | Object | {} | Custom styles |
👤 Cem Karakurt
-
Website: https://cemkarakurt.com
-
Twitter: @ickarakurt
-
Github: @ickarakurt
-
LinkedIn: @ickarakurt
Give a ⭐️ if this project helped you!