Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

OfflineBanner

Open .md
Live preview

Loading example…

OfflineBanner is part of the States set, imported from @jcsoftdev/ui/states.

import { OfflineBanner } from "@jcsoftdev/ui/states";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/states/offline-banner.

<OfflineBanner
message="Sin conexión. Los cobros se guardarán y se enviarán al reconectar."
queuedChanges={0}
queuedLabel="cambios pendientes"
/>
Prop Type Default Description
queuedChanges number 0 Number of changes queued while waiting to reconnect.
queuedLabel string Screen reader text for the queue counter.
message * ReactNode
action ReactNode Optional action next to the message, e.g. a retry Button. Shown after the queue counter.
className string

* marks a required prop.

packages/ui/src/states/offline-banner/offline-banner.tsx