Overview
The main entry point for Whop embedded components. WhopElements is the root object that manages configuration and creates the chat session. Initialize it once and use it to create the session that mounts chat, DMs, and search elements.Installation
Examples
Basic initialization
Creating a chat session
Updating options after initialization
Listening to option changes
Options
Events
Events emitted by WhopElements. Listen to these events using theon() method.
optionsUpdated
Emitted when the WhopElements options are updated via updateOptions().
Callback signature: (options: WhopElementsOptions) => void
Methods
createChatSession(options)
Create a new chat session for managing chat elements.
Returns:
ChatSession

