defmodule PyrauiWeb.DocsLive.ConnectionsWidgetDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Connections Widget

Social-style connections list with avatars, status indicators, mutual counts, and custom actions.

Followers Panel

<:action>

    <.connections_widget
      connections={@connections}
      current_user={@current_user_id}
      type={:followers}
      max_display={5}
    >
      <:action>
        <button class="btn btn-secondary">View All</button>
      </:action>
    </.connections_widget>
            

Highlights

  • Supports followers, following, or connections context via the type attribute.
  • Built-in mutual connection counts and online indicators.
  • Optional custom action slot for CTA buttons or dropdowns.
  • Responsive layout with graceful empty states when no data is available.
""" end end