"use client";
import { OfflineNotice } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
offlineMessage | ReactNode | — | Messages (onlineMessage false disables the reconnect note). |
online | boolean | — | Override detection (previews, tests). |
placement | "bottom" | "inline" | "top" | bottom | Where it sits relative to its anchor (start/end follow the writing direction). |
onlineMessage | ReactNode | false | — | Shown briefly after reconnecting; false disables it. |
offlineMessageReactNode
Messages (onlineMessage false disables the reconnect note).
onlineboolean
Override detection (previews, tests).
placementdefault bottom"bottom" | "inline" | "top"
Where it sits relative to its anchor (start/end follow the writing direction).
onlineMessageReactNode | false
Shown briefly after reconnecting; false disables it.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
Complex object props use fixed fixtures. Primitive props stay editable.
<OfflineNotice placement="inline" online={false} /><OfflineNotice offlineMessage="You’re offline. Sounds need a connection to play." /><OfflineNotice placement="inline" online={false} />