# ConnectionStatus

A connection hint that follows actual browser online and offline events.

- Family: Status, imported from `mizu-ui` or `mizu-ui/status`
- Docs: https://mizu.user64bit.world/components/connection-status
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/status/Feedback.tsx

## Usage

```tsx
import { ConnectionStatus } from "mizu-ui";

export function Example() {
  return <ConnectionStatus />;
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/connection-status
```

## Props

- `onlineLabel / offlineLabel`: `string`. Customize the browser connectivity hints.

## Accessibility

A live text status with stable server rendering. navigator.onLine is a connectivity hint, not proof your API is reachable.

## Motion

No continuous animation or polling.
