zedkit
@zedtech/zedkit-ui

Flag offline state with a live note

A hook reporting browser online state plus an alert-style note with overridable wording.

alpha

At a glance

  • Who: Developers telling the user the app lost connectivity.
  • What: A hook reporting browser online state plus an alert-style note with overridable wording.
  • Use when: At the top of a page or panel when useOnlineStatus() is false.
  • Avoid when: For inline operation states — use StatusLabel.
  • See also: Name an operation in progress

Install

pnpm add @zedtech/zedkit-ui

Latest: 0.4.0 (via changesets).

Example

Usage
import { OfflineNote } from "@zedtech/zedkit-ui";
<OfflineNote />

Wraps: (none)

On this page