Container
The Container
wraps the core Webchat interface.
It manages:
- Layout
- Drag-and-drop file uploading
- Connection status feedback
It also provides a shared context for nested components like MessageList
and Composer
.
Usage
We recommend using the Container
as the top-level wrapper around your Webchat content.
Props
Indicates whether the Webchat is currently connected. When false
, a modal appears and prompts the user to retry by reloading the page.
All standard <div>
props are passed through, allowing further customization like styling or event handlers.
Was this page helpful?