Hiyve Components - v1.0.0
    Preparing search index...
    • ChatPanel provides a real-time chat interface for video rooms.

      Parameters

      Returns ReactElement

      The rendered ChatPanel component

      ChatPanel automatically connects to the HiyveProvider context to get messages and send functionality. It must be used inside a <HiyveProvider>.

      Key Features:

      • Auto-scroll to newest messages
      • User avatars with deterministic colors per user
      • Configurable timestamp display
      • System messages styled differently (join/leave notifications)
      • Local messages on right, remote on left
      • Send via button click or Enter key
      • Full customization: labels, icons, colors, styles, and render props
      • Unread message tracking with onNewMessage callback