@@ -80,23 +80,24 @@ You can import it as a custom component:
80
80
81
81
## Props API
82
82
83
- | Prop | Type | Required | Default |
84
- | ------------------ | ---------------- | -------- | ------- |
85
- | height | String | - | 600px |
86
- | currentUserId (1) | [ String, Number] | true | - |
87
- | rooms | Array | - | [ ] |
88
- | loadingRooms (2) | Boolean | - | false |
89
- | messages | Array | - | [ ] |
90
- | messagesLoaded (3) | Boolean | - | false |
91
- | menuActions (4) | Array | - | [ ] |
92
- | messageActions (5) | Array | - | (4) |
93
- | showAddRoom | Boolean | - | true |
94
- | showFiles | Boolean | - | true |
95
- | showEmojis | Boolean | - | true |
96
- | showReactionEmojis | Boolean | - | true |
97
- | textMessages (6) | Object | - | null |
98
- | theme (7) | Sring | - | light |
99
- | styles (8) | Object | - | (8) |
83
+ | Prop | Type | Required | Default |
84
+ | ------------------------ | ---------------- | -------- | ------- |
85
+ | height | String | - | 600px |
86
+ | currentUserId (1) | [ String, Number] | true | - |
87
+ | rooms | Array | - | [ ] |
88
+ | loadingRooms (2) | Boolean | - | false |
89
+ | messages | Array | - | [ ] |
90
+ | messagesLoaded (3) | Boolean | - | false |
91
+ | menuActions (4) | Array | - | [ ] |
92
+ | messageActions (5) | Array | - | (4) |
93
+ | showAddRoom | Boolean | - | true |
94
+ | showFiles | Boolean | - | true |
95
+ | showEmojis | Boolean | - | true |
96
+ | showReactionEmojis | Boolean | - | true |
97
+ | textMessages (6) | Object | - | null |
98
+ | responsiveBreakpoint (7) | Number | - | 900 |
99
+ | theme (8) | Sring | - | light |
100
+ | styles (9) | Object | - | (9) |
100
101
101
102
(1) ` currentUserId ` is required to display UI and trigger actions according to the user using the chat (ex: messages position on the right, etc.)
102
103
@@ -177,9 +178,11 @@ textMessages="{
177
178
}"
178
179
```
179
180
180
- (7) ` theme ` can be used to change the chat theme. Currently, only ` light ` and ` dark ` are available.
181
+ (7) ` responsiveBreakpoint ` can be used to collapse the rooms list on the left when then viewport size goes below the specified width
181
182
182
- (8) ` styles ` can be used to customize your own theme. Ex:
183
+ (8) ` theme ` can be used to change the chat theme. Currently, only ` light ` and ` dark ` are available.
184
+
185
+ (9) ` styles ` can be used to customize your own theme. Ex:
183
186
184
187
``` javascript
185
188
styles= " {
0 commit comments