https://github.com/mbj36/vue-status
Vue component for detecting the network status - online or offline
https://github.com/mbj36/vue-status
network-connection vue-components vue-offline vuejs
Last synced: 2 months ago
JSON representation
Vue component for detecting the network status - online or offline
- Host: GitHub
- URL: https://github.com/mbj36/vue-status
- Owner: mbj36
- Created: 2018-05-23T14:15:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T15:35:27.000Z (almost 7 years ago)
- Last Synced: 2025-03-12T13:41:29.437Z (2 months ago)
- Topics: network-connection, vue-components, vue-offline, vuejs
- Language: JavaScript
- Size: 279 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-status
Vue component for detecting the network status - online or offline
## Requirements
* Vue.js 2.x
## Installation
`yarn add vue-status`
or
`npm install vue-status`
## Demo
[](https://codesandbox.io/s/lllnp9m84l)
## Usage
To use it locally in your component
`import VueStatus from 'vue-status'`
```javascript
export default {
components: {
VueStatus
}
};
``````html
You are online (Any online content can be put here)
You are offline (Any Offline content can be put here)
```