Skip to main content

ConnectionStatus

A status indicator component showing real-time connection status to backend services.

πŸ“‹ Overview​

PropertyValue
Filesrc/components/ConnectionStatus.tsx
TypeReact Functional Component
AuthorUIP Team
Version1.0.0

🎯 Purpose​

  • Display WebSocket connection status
  • Show API connectivity state
  • Indicate data freshness
  • Auto-reconnection feedback

πŸš€ Usage​

import { ConnectionStatus } from '@/components/ConnectionStatus';

function Header() {
return (
<header>
<ConnectionStatus />
</header>
);
}

πŸ“¦ Props​

PropTypeRequiredDefaultDescription
showLabelbooleanNotrueShow status text
size'sm' | 'md' | 'lg'No'md'Indicator size
position'inline' | 'fixed'No'inline'Display position

🎨 Status Indicators​

StatusColorLabel
Connected🟒 GreenConnected
Connecting🟑 YellowConnecting...
DisconnectedπŸ”΄ RedDisconnected
Reconnecting🟠 OrangeReconnecting...

See the complete components reference for all available components.