PhiaUi.Components.Display.ConnectionStatus (phia_ui v0.1.17)

Copy Markdown View Source

Connection status indicator for real-time collaboration.

Shows one of three states with an icon and tooltip:

  • :connected — green cloud-check, "Connected"
  • :reconnecting — amber spinning cloud, "Reconnecting..."
  • :offline — red cloud-off, "Offline — changes will sync when reconnected"

Examples

<.connection_status status={:connected} />
<.connection_status status={:offline} class="ml-2" />

Summary

Functions

connection_status(assigns)

Attributes

  • status (:atom) - Defaults to :connected. Must be one of :connected, :reconnecting, or :offline.
  • class (:string) - Defaults to nil.