Skip to content
V

v-offline

Simple, tiny and easy to use detection of offline & online events

by vinayakkulkarniOpen source

#1315in UI Libraries
0In stores

Description

v-offline is a small Vue component that detects when the browser goes online or offline. It exposes a VOffline component and emits a detecte…

Highlights

  • Detects online and offline changes in a Vue app
  • Emits a boolean detected-condition event
  • Custom classes for online and offline states
  • Configurable ping URL to confirm connectivity
  • Vue 3 build plus a legacy build for Vue 2.7 and later

Ratings & Reviews

No ratings yet

Be the first to rate v-offline.

People also visit

V

vue-simple-calendar

Flexbox-based Vue month calendar component

UI Libraries
Launch
V

vue-final-modal

Tailwind-friendly, highly customizable, stackable modal component

UI Libraries
Launch
V

Vue.js devtools

Browser devtools extension for debugging Vue.js applications

Developer Tools
Launch
V

vue-word-highlighter

The word highlighter library for Vue 2 and Vue 3

UI Libraries
Launch
V

vue-ellipse-progress

A flexible Vue.js component

UI Libraries
Launch
V

vuesax

Framework Components for Vue js

UI Libraries
Launch

v-offline FAQ

What does v-offline do?

It tells your Vue app when the network goes up or down, so you can show an offline message or change how the page looks.

How do I install it?

Run pnpm add v-offline@latest for Vue 3, or pnpm add v-offline@legacy for Vue 2.7 and later.

Does it work with Nuxt?

Yes. The README shows a Nuxt plugin that registers the component, and the module config loads that plugin in client mode.

How does it check the connection?

It watches the browser's online status and can ping a URL, which defaults to https://google.com, to double-check that you are online.

What are the best v-offline alternatives?

Popular alternatives to v-offline include vue-simple-calendar, vue-final-modal and vue-word-highlighter. See all v-offline alternatives

Developer Stuff

Badges