<Chat client={client}>
<Channel channel={channel}>
<Window>
<MessageList />
<MessageInput />
</Window>
<Thread />
</Channel>
</Chat>
This is documentation for
Stream Chat React SDK v11, which is no longer actively maintained. For up-to-date documentation, see the latest version (v12).
Window
The Window
component handles width changes in the main channel to ensure a seamless user experience when opening and closing a Thread
component.
Basic Usage
The Window
component must wrap the main channel components to enable smooth mount and unmount behavior. It must be rendered at the same level as the Thread
.
This ensures correct width changes in the main channel when opening and closing a Thread
.
Props
hideOnThread
The boolean to show or hide the Window
when a Thread
is active.
Type | Default |
---|---|
boolean | false |
thread
An optional prop to manually trigger the opening of a thread.
Type |
---|
object |
On this page: