An SSR-safe hook that tracks the browser's online/offline status via useSyncExternalStore.
npx shadcn@latest add @zyeon/use-online
Zyeon UI limits how often it can be asked, and useOnline hasn't had its turn. Its source will show here once it has.