vue-status
v1.0.1
Published
Vue component for detecting the network status - online or offline
Downloads
6
Maintainers
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
Usage
To use it locally in your component
import VueStatus from 'vue-status'
export default {
components: {
VueStatus
}
}
<vue-status>
<h2 slot="online">You are online (Any online content can be put here)</h2>
<h2 slot="offline">You are offline (Any Offline content can be put here)</h2>
</vue-status>