<Chat client={client}>
<Channel channel={channel}>
<Window>
<MessageList />
<MessageInput />
</Window>
<Thread />
</Channel>
</Chat>
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
thread
An optional prop to manually trigger the opening of a thread.
Type |
---|
object |
- I'm working with the Stream Chat React SDK and would like to ask questions about this documentation page: https://getstream.io/chat/docs/sdk/react/components/utility-components/window.md
- View as markdown
- Open in ChatGPT
- Open in Claude
On this page: