Menu
Libraries |
Category

s-offline

  • Purpose: A Svelte library for detecting offline and online events in applications, inspired by v-offline
  • Key Features:
    • Built with TypeScript
    • Provides real-time network status detection
    • Supports custom ping URLs to verify connectivity
  • Target Audience: Svelte developers needing network status detection in their applications
  • Svelte Support: Specifically designed for Svelte 3 applications
  • Core Functionality:
    • Emits events when network status changes (detectedCondition event)
    • Allows custom UI slots for online/offline states
    • Configurable ping URL (defaults to Google)
  • Demo: Available on StackBlitz
  • API:
    • Props: pingUrl (String)
    • Events: detectedCondition (returns boolean status)
  • Built With: TypeScript and Svelte 3

sveltesvelte3svelte-componentdetectnetworksvelte-componentssvelte-templatesvelte-jssveltejs

Comments