docs/components/utilities/ConnectionStatus

ConnectionStatus

Network/WebSocket connection indicator.

import { ConnectionStatus } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

Disconnected

<ConnectionStatus state="disconnected" />

Connecting

<ConnectionStatus state="connecting" />

#Props

PropTypeDefaultDescription
state *ConnectionState
classstring

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-font-size-base
  • --sk-space-sm
  • --sk-text-secondary