id | sidebar_position | title |
---|---|---|
window |
8 |
Window |
The Window
component handles width changes in the main channel to ensure a seamless user experience when opening and closing a Thread
component.
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
.
<Chat client={client}>
<Channel channel={channel}>
<Window>
<MessageList />
<MessageInput />
</Window>
<Thread />
</Channel>
</Chat>
The boolean to show or hide the Window
when a Thread
is active.
Type | Default |
---|---|
boolean | false |
An optional prop to manually trigger the opening of a thread.
Type |
---|
object |