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)
- Emits events when network status changes (
- Demo: Available on StackBlitz
- API:
- Props:
pingUrl
(String) - Events:
detectedCondition
(returns boolean status)
- Props:
- Built With: TypeScript and Svelte 3
sveltesvelte3svelte-componentdetectnetworksvelte-componentssvelte-templatesvelte-jssveltejs
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button