Skip to main content

Overview

The ConnectedUsers component displays a visual representation of all users currently connected to your collaboration session. It shows user avatars in an attractive group layout with automatic overflow handling, making it perfect for headers, sidebars, or any area where you want to show team presence.
Perfect for: Application headers, team dashboards, collaboration toolbars, user presence indicators, and any interface where showing connected users improves the collaborative experience.

Basic Usage

Props

number
default:"3"
Maximum number of user avatars to display before showing a “+N” indicator
boolean
default:"false"
Enable debug mode to show additional user information (development only)

Examples

Header Integration

Display connected users in your application header:
Create a detailed user panel with ConnectedUsers:

Dashboard Overview

Use ConnectedUsers in a dashboard overview:

Floating User Indicator

Create a floating user presence indicator:

Team Collaboration Toolbar

Integrate ConnectedUsers into a collaboration toolbar:

Game Lobby Players

Show players in a game lobby:

Meeting Room Interface

Display meeting participants:

Responsive User Display

Adaptive user display for different screen sizes:

Debug Mode

Use debug mode during development:

Built-in Styling

The ConnectedUsers component uses PrimeReact’s AvatarGroup with these default styles:

Customization

You can customize the appearance with CSS:

Best Practices

Performance

User Experience

Accessibility

Mobile Optimization

Common Patterns

  • Header Integration: Show team presence in application headers
  • Sidebar Display: Detailed user panels with additional information
  • Floating Indicators: Expandable user presence indicators
  • Gaming Lobbies: Player display in multiplayer games
  • Meeting Interfaces: Participant display in virtual meetings
  • Dashboard Cards: Team overview in admin dashboards

Dependencies

The ConnectedUsers component depends on:
  • PrimeReact: Avatar and AvatarGroup components
  • React Together: User data and state management

TypeScript Support

The ConnectedUsers component is fully typed: