Botpress home page
Search...
Ctrl K
Changelog
Dashboard
Dashboard
Search...
Navigation
Home
Learn
Integrations
Webchat
For Developers
API Reference
Community Discord
News & Resources
Get Started
Introduction to Webchat
Quick Start
Embed Webchat
Style your Webchat
Interact with Webchat
Open/close your Webchat
Send user data to your bot
Listen to events
Trigger actions on start
Send custom events
Integrations
WordPress
Wix
Webflow
React Library
Get started
Components
Webchat
Fab
Container
Header
MessageList
Composer
StylesheetProvider
Hooks
Example
Code
React Library
Components
Container
Example
Code
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
.
Props
connected
boolean
Indicates whether the Webchat is currently connected. When
false
, a modal appears and prompts the user to retry by reloading the page.
allowFileUpload
boolean
Controls whether the container has a dropzone for uploading files. Doesn’t affect whether the
Composer
contains a file upload button.
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Fab
Header
Assistant
Responses are generated using AI and may contain mistakes.