@livekit/components-js-docs 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/generated-docs/core/activespeakerobserver.md +1 -1
  2. package/generated-docs/core/computemenuposition.md +1 -1
  3. package/generated-docs/core/connectedparticipantobserver.md +1 -1
  4. package/generated-docs/core/connectedparticipantsobserver.md +1 -1
  5. package/generated-docs/core/connectionstateobserver.md +1 -1
  6. package/generated-docs/core/createactivedeviceobservable.md +1 -1
  7. package/generated-docs/core/createconnectionqualityobserver.md +1 -1
  8. package/generated-docs/core/createdataobserver.md +1 -1
  9. package/generated-docs/core/createisspeakingobserver.md +1 -1
  10. package/generated-docs/core/createmediadeviceobserver.md +1 -1
  11. package/generated-docs/core/createtrackobserver.md +1 -1
  12. package/generated-docs/core/gettrackbyidentifier.md +1 -1
  13. package/generated-docs/core/gettrackreferenceid.md +2 -2
  14. package/generated-docs/core/gettrackreferencesource.md +2 -2
  15. package/generated-docs/core/index.md +1 -1
  16. package/generated-docs/core/isequaltrackref.md +1 -1
  17. package/generated-docs/core/islocal.md +1 -1
  18. package/generated-docs/core/ismobilebrowser.md +2 -2
  19. package/generated-docs/core/isparticipantsourcepinned.md +2 -2
  20. package/generated-docs/core/isremote.md +1 -1
  21. package/generated-docs/core/issourceswithoptions.md +1 -1
  22. package/generated-docs/core/issourcewitoptions.md +1 -1
  23. package/generated-docs/core/istrackreference.md +1 -1
  24. package/generated-docs/core/istrackreferencepinned.md +2 -2
  25. package/generated-docs/core/istrackreferenceplaceholder.md +1 -1
  26. package/generated-docs/core/mutedobserver.md +1 -1
  27. package/generated-docs/core/observeparticipantevents.md +1 -1
  28. package/generated-docs/core/observeparticipantmedia.md +1 -1
  29. package/generated-docs/core/observeroomevents.md +1 -1
  30. package/generated-docs/core/observetrackevents.md +1 -1
  31. package/generated-docs/core/participanteventselector.md +1 -1
  32. package/generated-docs/core/participantinfoobserver.md +1 -1
  33. package/generated-docs/core/participantpermissionobserver.md +2 -2
  34. package/generated-docs/core/roomaudioplaybackallowedobservable.md +1 -1
  35. package/generated-docs/core/roomeventselector.md +1 -1
  36. package/generated-docs/core/roominfoobserver.md +1 -1
  37. package/generated-docs/core/roomobserver.md +1 -1
  38. package/generated-docs/core/screenshareobserver.md +1 -1
  39. package/generated-docs/core/selectgridlayout.md +1 -1
  40. package/generated-docs/core/sendmessage.md +2 -2
  41. package/generated-docs/core/setdifference.md +1 -1
  42. package/generated-docs/core/setloglevel.md +2 -2
  43. package/generated-docs/core/setupchat.md +8 -2
  44. package/generated-docs/core/setupchattoggle.md +1 -1
  45. package/generated-docs/core/setupclearpinbutton.md +1 -1
  46. package/generated-docs/core/setupconnectionqualityindicator.md +1 -1
  47. package/generated-docs/core/setupdatamessagehandler.md +1 -1
  48. package/generated-docs/core/setupdeviceselector.md +1 -1
  49. package/generated-docs/core/setupdisconnectbutton.md +1 -1
  50. package/generated-docs/core/setupfocustoggle.md +1 -1
  51. package/generated-docs/core/setuplivekitroom.md +1 -1
  52. package/generated-docs/core/setupmanualtoggle.md +1 -1
  53. package/generated-docs/core/setupmediatoggle.md +1 -1
  54. package/generated-docs/core/setupmediatrack.md +1 -1
  55. package/generated-docs/core/setupparticipantname.md +1 -1
  56. package/generated-docs/core/setupparticipanttile.md +1 -1
  57. package/generated-docs/core/setupstartaudio.md +1 -1
  58. package/generated-docs/core/setuptrackmutedindicator.md +1 -1
  59. package/generated-docs/core/sortparticipants.md +2 -2
  60. package/generated-docs/core/sorttrackreferences.md +2 -2
  61. package/generated-docs/core/supportsscreensharing.md +2 -2
  62. package/generated-docs/core/tokenize.md +1 -1
  63. package/generated-docs/core/trackidentifier.md +1 -1
  64. package/generated-docs/core/trackobservable.md +1 -1
  65. package/generated-docs/core/trackreferencesobservable.md +1 -1
  66. package/generated-docs/core/updatepages.md +2 -2
  67. package/generated-docs/core/wasclickoutside.md +1 -1
  68. package/generated-docs/react/allowaudioplaybackprops.md +1 -1
  69. package/generated-docs/react/audioconferenceprops.md +1 -1
  70. package/generated-docs/react/audiotrackprops.md +1 -1
  71. package/generated-docs/react/audiotrackprops.volume.md +1 -1
  72. package/generated-docs/react/audiovisualizerprops.md +1 -1
  73. package/generated-docs/react/carouselviewprops.md +1 -1
  74. package/generated-docs/react/carouselviewprops.orientation.md +1 -1
  75. package/generated-docs/react/chatentryprops.entry.md +1 -1
  76. package/generated-docs/react/chatentryprops.hidename.md +1 -1
  77. package/generated-docs/react/chatentryprops.hidetimestamp.md +1 -1
  78. package/generated-docs/react/chatentryprops.md +1 -1
  79. package/generated-docs/react/chatentryprops.messageformatter.md +1 -1
  80. package/generated-docs/react/chatprops.md +3 -1
  81. package/generated-docs/react/chatprops.messagedecoder.md +9 -0
  82. package/generated-docs/react/chatprops.messageencoder.md +9 -0
  83. package/generated-docs/react/chattoggleprops.md +1 -1
  84. package/generated-docs/react/clearpinbuttonprops.md +1 -1
  85. package/generated-docs/react/component/audioconference.md +2 -2
  86. package/generated-docs/react/component/audiotrack.md +29 -10
  87. package/generated-docs/react/component/audiovisualizer.md +6 -5
  88. package/generated-docs/react/component/carouselview.md +12 -7
  89. package/generated-docs/react/component/chat.md +16 -5
  90. package/generated-docs/react/component/chatentry.md +21 -8
  91. package/generated-docs/react/component/chattoggle.md +2 -2
  92. package/generated-docs/react/component/clearpinbutton.md +2 -2
  93. package/generated-docs/react/component/connectionqualityindicator.md +2 -2
  94. package/generated-docs/react/component/connectionstate.md +6 -5
  95. package/generated-docs/react/component/connectionstatetoast.md +6 -5
  96. package/generated-docs/react/component/controlbar.md +11 -6
  97. package/generated-docs/react/component/disconnectbutton.md +6 -5
  98. package/generated-docs/react/component/focuslayout.md +11 -6
  99. package/generated-docs/react/component/focuslayoutcontainer.md +11 -6
  100. package/generated-docs/react/component/focustoggle.md +9 -6
  101. package/generated-docs/react/component/gridlayout.md +7 -6
  102. package/generated-docs/react/component/livekitroom.md +71 -18
  103. package/generated-docs/react/component/mediadevicemenu.md +26 -9
  104. package/generated-docs/react/component/mediadeviceselect.md +39 -12
  105. package/generated-docs/react/component/participantaudiotile.md +26 -9
  106. package/generated-docs/react/component/participantcontextifneeded.md +2 -2
  107. package/generated-docs/react/component/participantloop.md +11 -6
  108. package/generated-docs/react/component/participantname.md +2 -2
  109. package/generated-docs/react/component/participanttile.md +26 -9
  110. package/generated-docs/react/component/prejoin.md +46 -13
  111. package/generated-docs/react/component/roomaudiorenderer.md +2 -2
  112. package/generated-docs/react/component/roomname.md +6 -5
  113. package/generated-docs/react/component/startaudio.md +4 -5
  114. package/generated-docs/react/component/toast.md +2 -2
  115. package/generated-docs/react/component/trackloop.md +11 -6
  116. package/generated-docs/react/component/trackmutedindicator.md +14 -7
  117. package/generated-docs/react/component/tracktoggle.md +24 -9
  118. package/generated-docs/react/component/videoconference.md +16 -5
  119. package/generated-docs/react/component/videotrack.md +34 -10
  120. package/generated-docs/react/connectionqualityindicatoroptions.md +1 -1
  121. package/generated-docs/react/connectionqualityindicatorprops.md +1 -1
  122. package/generated-docs/react/connectionstatetoastprops.md +1 -1
  123. package/generated-docs/react/connectionstatusprops.md +1 -1
  124. package/generated-docs/react/connectionstatusprops.room.md +1 -1
  125. package/generated-docs/react/controlbarcontrols.md +1 -1
  126. package/generated-docs/react/controlbarprops.md +1 -1
  127. package/generated-docs/react/disconnectbuttonprops.md +1 -1
  128. package/generated-docs/react/focuslayoutcontainerprops.md +1 -1
  129. package/generated-docs/react/focuslayoutprops.md +1 -1
  130. package/generated-docs/react/focustoggleprops.md +1 -1
  131. package/generated-docs/react/formatchatmessagelinks.md +11 -0
  132. package/generated-docs/react/gridlayoutprops.md +1 -1
  133. package/generated-docs/react/hook/usechat.md +12 -4
  134. package/generated-docs/react/hook/usechattoggle.md +6 -7
  135. package/generated-docs/react/hook/useclearpinbutton.md +6 -7
  136. package/generated-docs/react/hook/useconnectionqualityindicator.md +6 -7
  137. package/generated-docs/react/hook/useconnectionstate.md +6 -7
  138. package/generated-docs/react/hook/usecreatelayoutcontext.md +4 -4
  139. package/generated-docs/react/hook/usedatachannel.md +9 -8
  140. package/generated-docs/react/hook/usedatachannel_1.md +6 -7
  141. package/generated-docs/react/hook/usedisconnectbutton.md +6 -7
  142. package/generated-docs/react/hook/useensurecreatelayoutcontext.md +6 -7
  143. package/generated-docs/react/hook/useensurelayoutcontext.md +6 -7
  144. package/generated-docs/react/hook/useensureparticipant.md +6 -7
  145. package/generated-docs/react/hook/useensureroom.md +6 -7
  146. package/generated-docs/react/hook/useensuretrackreference.md +6 -7
  147. package/generated-docs/react/hook/usefocustoggle.md +6 -7
  148. package/generated-docs/react/hook/usegridlayout.md +9 -8
  149. package/generated-docs/react/hook/useismuted.md +9 -8
  150. package/generated-docs/react/hook/useisspeaking.md +6 -7
  151. package/generated-docs/react/hook/uselayoutcontext.md +4 -4
  152. package/generated-docs/react/hook/uselivekitroom.md +6 -7
  153. package/generated-docs/react/hook/uselocalparticipant.md +6 -7
  154. package/generated-docs/react/hook/uselocalparticipantpermissions.md +4 -4
  155. package/generated-docs/react/hook/usemaybelayoutcontext.md +4 -4
  156. package/generated-docs/react/hook/usemaybeparticipantcontext.md +4 -4
  157. package/generated-docs/react/hook/usemayberoomcontext.md +4 -4
  158. package/generated-docs/react/hook/usemaybetrackcontext.md +4 -4
  159. package/generated-docs/react/hook/usemediadevices.md +8 -7
  160. package/generated-docs/react/hook/usemediadeviceselect.md +6 -7
  161. package/generated-docs/react/hook/usemediatrack.md +12 -9
  162. package/generated-docs/react/hook/usemediatrackbyname.md +12 -9
  163. package/generated-docs/react/hook/useparticipantcontext.md +4 -4
  164. package/generated-docs/react/hook/useparticipantinfo.md +6 -7
  165. package/generated-docs/react/hook/useparticipantpermissions.md +6 -7
  166. package/generated-docs/react/hook/useparticipants.md +6 -7
  167. package/generated-docs/react/hook/useparticipanttile.md +6 -7
  168. package/generated-docs/react/hook/usepinnedtracks.md +6 -7
  169. package/generated-docs/react/hook/usepreviewdevice.md +12 -9
  170. package/generated-docs/react/hook/useremoteparticipant.md +9 -8
  171. package/generated-docs/react/hook/useremoteparticipants.md +6 -7
  172. package/generated-docs/react/hook/useroomcontext.md +4 -4
  173. package/generated-docs/react/hook/useroominfo.md +6 -7
  174. package/generated-docs/react/hook/usesortedparticipants.md +6 -7
  175. package/generated-docs/react/hook/usespeakingparticipants.md +4 -4
  176. package/generated-docs/react/hook/usetoken.md +12 -9
  177. package/generated-docs/react/hook/usetrackcontext.md +4 -4
  178. package/generated-docs/react/hook/usetrackmutedindicator.md +9 -8
  179. package/generated-docs/react/hook/usetracks.md +9 -8
  180. package/generated-docs/react/hook/usetracktoggle.md +6 -7
  181. package/generated-docs/react/hook/usevisualstableupdate.md +12 -9
  182. package/generated-docs/react/index.md +8 -6
  183. package/generated-docs/react/layoutcontext.md +1 -1
  184. package/generated-docs/react/layoutcontexttype.md +1 -1
  185. package/generated-docs/react/livekitroomprops.audio.md +1 -1
  186. package/generated-docs/react/livekitroomprops.connect.md +1 -1
  187. package/generated-docs/react/livekitroomprops.connectoptions.md +1 -1
  188. package/generated-docs/react/livekitroomprops.md +1 -1
  189. package/generated-docs/react/livekitroomprops.options.md +1 -1
  190. package/generated-docs/react/livekitroomprops.room.md +1 -1
  191. package/generated-docs/react/livekitroomprops.screen.md +1 -1
  192. package/generated-docs/react/livekitroomprops.serverurl.md +1 -1
  193. package/generated-docs/react/livekitroomprops.token.md +1 -1
  194. package/generated-docs/react/livekitroomprops.video.md +1 -1
  195. package/generated-docs/react/localuserchoices.md +1 -1
  196. package/generated-docs/react/mediadevicemenuprops.md +1 -1
  197. package/generated-docs/react/mediadevicemenuprops.requestpermissions.md +1 -1
  198. package/generated-docs/react/mediadeviceselectprops.exactmatch.md +1 -1
  199. package/generated-docs/react/mediadeviceselectprops.md +1 -1
  200. package/generated-docs/react/mediadeviceselectprops.requestpermissions.md +1 -1
  201. package/generated-docs/react/messagedecoder.md +13 -0
  202. package/generated-docs/react/messageencoder.md +13 -0
  203. package/generated-docs/react/messageformatter.md +1 -1
  204. package/generated-docs/react/meta-data.json +1 -0
  205. package/generated-docs/react/participantcontext.md +1 -1
  206. package/generated-docs/react/participantloopprops.children.md +1 -1
  207. package/generated-docs/react/participantloopprops.md +5 -5
  208. package/generated-docs/react/participantloopprops.participants.md +2 -2
  209. package/generated-docs/react/participantnameprops.md +1 -1
  210. package/generated-docs/react/participanttileprops.md +1 -1
  211. package/generated-docs/react/prejoinprops.debug.md +1 -1
  212. package/generated-docs/react/prejoinprops.defaults.md +1 -1
  213. package/generated-docs/react/prejoinprops.md +12 -12
  214. package/generated-docs/react/prejoinprops.onsubmit.md +1 -1
  215. package/generated-docs/react/prejoinprops.onvalidate.md +1 -1
  216. package/generated-docs/react/{hook/prejoinprops.userlabel.md → prejoinprops.userlabel.md} +2 -2
  217. package/generated-docs/react/roomcontext.md +1 -1
  218. package/generated-docs/react/roomnameprops.md +1 -1
  219. package/generated-docs/react/trackcontext.md +1 -1
  220. package/generated-docs/react/trackloopprops.children.md +1 -1
  221. package/generated-docs/react/trackloopprops.md +5 -5
  222. package/generated-docs/react/trackloopprops.tracks.md +2 -2
  223. package/generated-docs/react/trackmutedindicatorprops.md +1 -1
  224. package/generated-docs/react/tracktoggleprops.md +1 -1
  225. package/generated-docs/react/usechattoggleprops.md +1 -1
  226. package/generated-docs/react/usefocustoggleprops.md +1 -1
  227. package/generated-docs/react/useismutedoptions.md +1 -1
  228. package/generated-docs/react/uselocalparticipantoptions.md +1 -1
  229. package/generated-docs/react/uselocalparticipantoptions.room.md +1 -1
  230. package/generated-docs/react/usemediadeviceselectprops.md +1 -1
  231. package/generated-docs/react/usemediadeviceselectprops.requestpermissions.md +1 -1
  232. package/generated-docs/react/usemediatrackoptions.md +1 -1
  233. package/generated-docs/react/useparticipantinfooptions.md +1 -1
  234. package/generated-docs/react/useparticipantpermissionsoptions.md +1 -1
  235. package/generated-docs/react/useparticipantsoptions.md +1 -1
  236. package/generated-docs/react/useparticipantsoptions.room.md +1 -1
  237. package/generated-docs/react/useparticipantsoptions.updateonlyon.md +1 -1
  238. package/generated-docs/react/useparticipanttileprops.md +1 -1
  239. package/generated-docs/react/useremoteparticipantoptions.md +1 -1
  240. package/generated-docs/react/useremoteparticipantsoptions.md +1 -1
  241. package/generated-docs/react/useremoteparticipantsoptions.room.md +1 -1
  242. package/generated-docs/react/useremoteparticipantsoptions.updateonlyon.md +1 -1
  243. package/generated-docs/react/userinfo.md +1 -1
  244. package/generated-docs/react/useroominfooptions.md +1 -1
  245. package/generated-docs/react/usetokenoptions.md +4 -4
  246. package/generated-docs/react/{hook/usetokenoptions.userinfo.md → usetokenoptions.userinfo.md} +2 -2
  247. package/generated-docs/react/usetrackmutedindicatoroptions.md +1 -1
  248. package/generated-docs/react/usetrackshookreturntype.md +1 -1
  249. package/generated-docs/react/usetracksoptions.md +1 -1
  250. package/generated-docs/react/usetracktoggleprops.md +1 -1
  251. package/generated-docs/react/usevisualstableupdateoptions.customsortfunction.md +1 -1
  252. package/generated-docs/react/usevisualstableupdateoptions.md +1 -1
  253. package/generated-docs/react/videoconferenceprops.chatmessagedecoder.md +9 -0
  254. package/generated-docs/react/videoconferenceprops.chatmessageencoder.md +9 -0
  255. package/generated-docs/react/videoconferenceprops.md +3 -1
  256. package/generated-docs/react/videotrackprops.managesubscription.md +9 -0
  257. package/generated-docs/react/videotrackprops.md +2 -1
  258. package/package.json +1 -1
  259. package/generated-docs/react/component/formatchatmessagelinks.md +0 -11
  260. package/meta-data.json +0 -78
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # FocusToggle (component)
3
+ # FocusToggle
4
4
 
5
5
  The FocusToggle puts the ParticipantTile in focus or removes it from focus.
6
6
 
@@ -18,11 +18,14 @@ import { FocusToggle } from '@livekit/components-react';
18
18
  </ParticipantTile>
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
22
22
 
23
23
  ## Properties
24
24
 
25
- | Property | Type | Description |
26
- | ------------------------------------------------------- | ------------ | ------------ |
27
- | [participant?](./react/focustoggleprops.participant.md) | Participant | _(Optional)_ |
28
- | [trackSource](./react/focustoggleprops.tracksource.md) | Track.Source | |
25
+ {% parameter name="trackSource" type="Track.Source" optional=false %}
26
+ {% /parameter %}
27
+
28
+ {% parameter name="participant" type="Participant" optional=true %}
29
+ _(Optional)_
30
+
31
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # GridLayout (component)
3
+ # GridLayout
4
4
 
5
5
  The GridLayout component displays the nested participants in a grid where every participants has the same size.
6
6
 
@@ -20,11 +20,12 @@ import { GridLayout } from '@livekit/components-react';
20
20
  <LiveKitRoom>
21
21
  ```
22
22
 
23
- {% partial file="p_usage.md" /%}
23
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
24
24
 
25
25
  ## Properties
26
26
 
27
- | Property | Type | Description |
28
- | ----------------------------------------------- | -------------------------------------------------------------------------------- | ----------- |
29
- | [children](./react/gridlayoutprops.children.md) | React.ReactNode | |
30
- | [tracks](./react/gridlayoutprops.tracks.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md)<!-- -->\[\] | |
27
+ {% parameter name="children" type="React.ReactNode" optional=false %}
28
+ {% /parameter %}
29
+
30
+ {% parameter name="tracks" type="TrackReferenceOrPlaceholder[]" optional=false %}
31
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # LiveKitRoom (component)
3
+ # LiveKitRoom
4
4
 
5
5
  The LiveKitRoom component provides the room context to all its child components. It is generally the starting point of your LiveKit app and the root of the LiveKit component tree. It provides the room state as a React context to all child components, so you don't have to pass it yourself.
6
6
 
@@ -18,23 +18,76 @@ import { LiveKitRoom } from '@livekit/components-react';
18
18
  </LiveKitRoom>
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
22
22
 
23
23
  ## Properties
24
24
 
25
- | Property | Type | Description |
26
- | ------------------------------------------------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
- | [audio?](./react/livekitroomprops.audio.md) | AudioCaptureOptions \| boolean | _(Optional)_ Publish audio immediately after connecting to your LiveKit room. |
28
- | [connect?](./react/livekitroomprops.connect.md) | boolean | _(Optional)_ If set to true a connection to LiveKit room is initiated. |
29
- | [connectOptions?](./react/livekitroomprops.connectoptions.md) | RoomConnectOptions | _(Optional)_ Define options how to connect to the LiveKit server. |
30
- | [onConnected?](./react/livekitroomprops.onconnected.md) | () =&gt; void | _(Optional)_ |
31
- | [onDisconnected?](./react/livekitroomprops.ondisconnected.md) | () =&gt; void | _(Optional)_ |
32
- | [onError?](./react/livekitroomprops.onerror.md) | (error: Error) =&gt; void | _(Optional)_ |
33
- | [onMediaDeviceFailure?](./react/livekitroomprops.onmediadevicefailure.md) | (failure?: MediaDeviceFailure) =&gt; void | _(Optional)_ |
34
- | [options?](./react/livekitroomprops.options.md) | RoomOptions | _(Optional)_ Options for when creating a new room. When you pass your own room instance to this component, these options have no effect. Instead, set the options directly in the room instance. |
35
- | [room?](./react/livekitroomprops.room.md) | Room | _(Optional)_ Optional room instance. By passing your own room instance you overwrite the <code>options</code> parameter, make sure to set the options directly on the room instance itself. |
36
- | [screen?](./react/livekitroomprops.screen.md) | ScreenShareCaptureOptions \| boolean | _(Optional)_ Publish screen share immediately after connecting to your LiveKit room. |
37
- | [serverUrl](./react/livekitroomprops.serverurl.md) | string \| undefined | URL to the LiveKit server. For example: <code>wss://&lt;domain&gt;.livekit.cloud</code> To simplify the implementation, <code>undefined</code> is also accepted as an intermediate value, but only with a valid string url can the connection be established. |
38
- | [simulateParticipants?](./react/livekitroomprops.simulateparticipants.md) | number \| undefined | _(Optional)_ |
39
- | [token](./react/livekitroomprops.token.md) | string \| undefined | A user specific access token for a client to authenticate to the room. This token is necessary to establish a connection to the room. To simplify the implementation, <code>undefined</code> is also accepted as an intermediate value, but only with a valid string token can the connection be established. |
40
- | [video?](./react/livekitroomprops.video.md) | VideoCaptureOptions \| boolean | _(Optional)_ Publish video immediately after connecting to your LiveKit room. |
25
+ {% parameter name="serverUrl" type="string | undefined" optional=false %}
26
+ URL to the LiveKit server. For example: `wss://<domain>.livekit.cloud` To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string url can the connection be established.
27
+
28
+ {% /parameter %}
29
+
30
+ {% parameter name="token" type="string | undefined" optional=false %}
31
+ A user specific access token for a client to authenticate to the room. This token is necessary to establish a connection to the room. To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string token can the connection be established.
32
+
33
+ {% /parameter %}
34
+
35
+ {% parameter name="audio" type="AudioCaptureOptions | boolean" optional=true %}
36
+ _(Optional)_ Publish audio immediately after connecting to your LiveKit room.
37
+
38
+ {% /parameter %}
39
+
40
+ {% parameter name="connect" type="boolean" optional=true %}
41
+ _(Optional)_ If set to true a connection to LiveKit room is initiated.
42
+
43
+ {% /parameter %}
44
+
45
+ {% parameter name="connectOptions" type="RoomConnectOptions" optional=true %}
46
+ _(Optional)_ Define options how to connect to the LiveKit server.
47
+
48
+ {% /parameter %}
49
+
50
+ {% parameter name="onConnected" type="() => void" optional=true %}
51
+ _(Optional)_
52
+
53
+ {% /parameter %}
54
+
55
+ {% parameter name="onDisconnected" type="() => void" optional=true %}
56
+ _(Optional)_
57
+
58
+ {% /parameter %}
59
+
60
+ {% parameter name="onError" type="(error: Error) => void" optional=true %}
61
+ _(Optional)_
62
+
63
+ {% /parameter %}
64
+
65
+ {% parameter name="onMediaDeviceFailure" type="(failure?: MediaDeviceFailure) => void" optional=true %}
66
+ _(Optional)_
67
+
68
+ {% /parameter %}
69
+
70
+ {% parameter name="options" type="RoomOptions" optional=true %}
71
+ _(Optional)_ Options for when creating a new room. When you pass your own room instance to this component, these options have no effect. Instead, set the options directly in the room instance.
72
+
73
+ {% /parameter %}
74
+
75
+ {% parameter name="room" type="Room" optional=true %}
76
+ _(Optional)_ Optional room instance. By passing your own room instance you overwrite the `options` parameter, make sure to set the options directly on the room instance itself.
77
+
78
+ {% /parameter %}
79
+
80
+ {% parameter name="screen" type="ScreenShareCaptureOptions | boolean" optional=true %}
81
+ _(Optional)_ Publish screen share immediately after connecting to your LiveKit room.
82
+
83
+ {% /parameter %}
84
+
85
+ {% parameter name="simulateParticipants" type="number | undefined" optional=true %}
86
+ _(Optional)_
87
+
88
+ {% /parameter %}
89
+
90
+ {% parameter name="video" type="VideoCaptureOptions | boolean" optional=true %}
91
+ _(Optional)_ Publish video immediately after connecting to your LiveKit room.
92
+
93
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # MediaDeviceMenu (prefab)
3
+ # MediaDeviceMenu
4
4
 
5
5
  The MediaDeviceMenu prefab component is a button that opens a menu that lists all media devices and allows the user to select them.
6
6
 
@@ -22,14 +22,31 @@ This component is implemented with the `MediaDeviceSelect` LiveKit components.
22
22
  </LiveKitRoom>
23
23
  ```
24
24
 
25
- {% partial file="p_usage.md" /%}
25
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
26
26
 
27
27
  ## Properties
28
28
 
29
- | Property | Type | Description |
30
- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31
- | [initialSelection?](./react/mediadevicemenuprops.initialselection.md) | string | _(Optional)_ |
32
- | [kind?](./react/mediadevicemenuprops.kind.md) | MediaDeviceKind | _(Optional)_ |
33
- | [onActiveDeviceChange?](./react/mediadevicemenuprops.onactivedevicechange.md) | (kind: MediaDeviceKind, deviceId: string) =&gt; void | _(Optional)_ |
34
- | [requestPermissions?](./react/mediadevicemenuprops.requestpermissions.md) | boolean | _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions. |
35
- | [tracks?](./react/mediadevicemenuprops.tracks.md) | Partial&lt;Record&lt;MediaDeviceKind, LocalAudioTrack \| LocalVideoTrack \| undefined&gt;&gt; | _(Optional)_ |
29
+ {% parameter name="initialSelection" type="string" optional=true %}
30
+ _(Optional)_
31
+
32
+ {% /parameter %}
33
+
34
+ {% parameter name="kind" type="MediaDeviceKind" optional=true %}
35
+ _(Optional)_
36
+
37
+ {% /parameter %}
38
+
39
+ {% parameter name="onActiveDeviceChange" type="(kind: MediaDeviceKind, deviceId: string) => void" optional=true %}
40
+ _(Optional)_
41
+
42
+ {% /parameter %}
43
+
44
+ {% parameter name="requestPermissions" type="boolean" optional=true %}
45
+ _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions.
46
+
47
+ {% /parameter %}
48
+
49
+ {% parameter name="tracks" type="Partial<Record<MediaDeviceKind, LocalAudioTrack | LocalVideoTrack | undefined>>" optional=true %}
50
+ _(Optional)_
51
+
52
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # MediaDeviceSelect (component)
3
+ # MediaDeviceSelect
4
4
 
5
5
  The MediaDeviceSelect list all media devices of one kind. Clicking on one of the listed devices make it the active media device.
6
6
 
@@ -18,17 +18,44 @@ import { MediaDeviceSelect } from '@livekit/components-react';
18
18
  </LiveKitRoom>
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
22
22
 
23
23
  ## Properties
24
24
 
25
- | Property | Type | Description |
26
- | ------------------------------------------------------------------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
- | [exactMatch?](./react/mediadeviceselectprops.exactmatch.md) | boolean | _(Optional)_ will force the browser to only return the specified device will call <code>onDeviceSelectError</code> with the error in case this fails |
28
- | [initialSelection?](./react/mediadeviceselectprops.initialselection.md) | string | _(Optional)_ |
29
- | [kind](./react/mediadeviceselectprops.kind.md) | MediaDeviceKind | |
30
- | [onActiveDeviceChange?](./react/mediadeviceselectprops.onactivedevicechange.md) | (deviceId: string) =&gt; void | _(Optional)_ |
31
- | [onDeviceListChange?](./react/mediadeviceselectprops.ondevicelistchange.md) | (devices: MediaDeviceInfo\[\]) =&gt; void | _(Optional)_ |
32
- | [onDeviceSelectError?](./react/mediadeviceselectprops.ondeviceselecterror.md) | (e: Error) =&gt; void | _(Optional)_ |
33
- | [requestPermissions?](./react/mediadeviceselectprops.requestpermissions.md) | boolean | _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions. |
34
- | [track?](./react/mediadeviceselectprops.track.md) | LocalAudioTrack \| LocalVideoTrack | _(Optional)_ |
25
+ {% parameter name="kind" type="MediaDeviceKind" optional=false %}
26
+ {% /parameter %}
27
+
28
+ {% parameter name="exactMatch" type="boolean" optional=true %}
29
+ _(Optional)_ will force the browser to only return the specified device will call `onDeviceSelectError` with the error in case this fails
30
+
31
+ {% /parameter %}
32
+
33
+ {% parameter name="initialSelection" type="string" optional=true %}
34
+ _(Optional)_
35
+
36
+ {% /parameter %}
37
+
38
+ {% parameter name="onActiveDeviceChange" type="(deviceId: string) => void" optional=true %}
39
+ _(Optional)_
40
+
41
+ {% /parameter %}
42
+
43
+ {% parameter name="onDeviceListChange" type="(devices: MediaDeviceInfo[]) => void" optional=true %}
44
+ _(Optional)_
45
+
46
+ {% /parameter %}
47
+
48
+ {% parameter name="onDeviceSelectError" type="(e: Error) => void" optional=true %}
49
+ _(Optional)_
50
+
51
+ {% /parameter %}
52
+
53
+ {% parameter name="requestPermissions" type="boolean" optional=true %}
54
+ _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions.
55
+
56
+ {% /parameter %}
57
+
58
+ {% parameter name="track" type="LocalAudioTrack | LocalVideoTrack" optional=true %}
59
+ _(Optional)_
60
+
61
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # ParticipantAudioTile (component)
3
+ # ParticipantAudioTile
4
4
 
5
5
  The ParticipantAudioTile component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TileLoop` or independently if a participant is passed as a property.
6
6
 
@@ -16,14 +16,31 @@ import { ParticipantAudioTile } from '@livekit/components-react';
16
16
  <ParticipantAudioTile />
17
17
  ```
18
18
 
19
- {% partial file="p_usage.md" /%}
19
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
20
20
 
21
21
  ## Properties
22
22
 
23
- | Property | Type | Description |
24
- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------ |
25
- | [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
26
- | [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) =&gt; void | _(Optional)_ |
27
- | [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
28
- | [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
29
- | [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
23
+ {% parameter name="disableSpeakingIndicator" type="boolean" optional=true %}
24
+ _(Optional)_
25
+
26
+ {% /parameter %}
27
+
28
+ {% parameter name="onParticipantClick" type="(event: ParticipantClickEvent) => void" optional=true %}
29
+ _(Optional)_
30
+
31
+ {% /parameter %}
32
+
33
+ {% parameter name="participant" type="Participant" optional=true %}
34
+ _(Optional)_
35
+
36
+ {% /parameter %}
37
+
38
+ {% parameter name="publication" type="TrackPublication" optional=true %}
39
+ _(Optional)_
40
+
41
+ {% /parameter %}
42
+
43
+ {% parameter name="source" type="Track.Source" optional=true %}
44
+ _(Optional)_
45
+
46
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # ParticipantContextIfNeeded (component)
3
+ # ParticipantContextIfNeeded
4
4
 
5
5
  ## Import
6
6
 
@@ -8,4 +8,4 @@
8
8
  import { ParticipantContextIfNeeded } from '@livekit/components-react';
9
9
  ```
10
10
 
11
- {% partial file="p_usage.md" /%}
11
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # ParticipantLoop (component)
3
+ # ParticipantLoop
4
4
 
5
5
  The ParticipantLoop component loops over an array of participants to create a context for every participant. This component takes exactly one child component as a template. By providing your own template as a child you have full control over the look and feel of your participant representations.
6
6
 
@@ -23,11 +23,16 @@ const participants = useParticipants();
23
23
  <ParticipantLoop />
24
24
  ```
25
25
 
26
- {% partial file="p_usage.md" /%}
26
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
27
27
 
28
28
  ## Properties
29
29
 
30
- | Property | Type | Description |
31
- | ------------------------------------------------------------ | --------------- | -------------------------------------------------------------------------------------------------------- |
32
- | [children](./react/participantloopprops.children.md) | React.ReactNode | The template component to be used in the loop. |
33
- | [participants](./react/participantloopprops.participants.md) | Participant\[\] | The participants to loop over. If not provided, the participants from the current room context are used. |
30
+ {% parameter name="children" type="React.ReactNode" optional=false %}
31
+ The template component to be used in the loop.
32
+
33
+ {% /parameter %}
34
+
35
+ {% parameter name="participants" type="Participant[]" optional=false %}
36
+ The participants to loop over. Use `useParticipants()` hook to get participants.
37
+
38
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # ParticipantName (component)
3
+ # ParticipantName
4
4
 
5
5
  The ParticipantName component displays the name of the participant as a string within an HTML span element. If no participant name is undefined the participant identity string is displayed.
6
6
 
@@ -16,4 +16,4 @@ import { ParticipantName } from '@livekit/components-react';
16
16
  <ParticipantName />
17
17
  ```
18
18
 
19
- {% partial file="p_usage.md" /%}
19
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # ParticipantTile (component)
3
+ # ParticipantTile
4
4
 
5
5
  The ParticipantTile component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TrackLoop` component or by spreading a track reference as properties.
6
6
 
@@ -18,14 +18,31 @@ import { ParticipantTile } from '@livekit/components-react';
18
18
  <ParticipantTile {...trackReference} />
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
22
22
 
23
23
  ## Properties
24
24
 
25
- | Property | Type | Description |
26
- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------ |
27
- | [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
28
- | [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) =&gt; void | _(Optional)_ |
29
- | [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
30
- | [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
31
- | [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
25
+ {% parameter name="disableSpeakingIndicator" type="boolean" optional=true %}
26
+ _(Optional)_
27
+
28
+ {% /parameter %}
29
+
30
+ {% parameter name="onParticipantClick" type="(event: ParticipantClickEvent) => void" optional=true %}
31
+ _(Optional)_
32
+
33
+ {% /parameter %}
34
+
35
+ {% parameter name="participant" type="Participant" optional=true %}
36
+ _(Optional)_
37
+
38
+ {% /parameter %}
39
+
40
+ {% parameter name="publication" type="TrackPublication" optional=true %}
41
+ _(Optional)_
42
+
43
+ {% /parameter %}
44
+
45
+ {% parameter name="source" type="Track.Source" optional=true %}
46
+ _(Optional)_
47
+
48
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # PreJoin (prefab)
3
+ # PreJoin
4
4
 
5
5
  The PreJoin prefab component is normally presented to the user before he enters a room. This component allows the user to check and select the preferred media device (camera und microphone). On submit the user decisions are returned, which can then be passed on to the LiveKitRoom so that the user enters the room with the correct media devices.
6
6
 
@@ -20,18 +20,51 @@ This component is independent from the LiveKitRoom component and don't has to be
20
20
  <PreJoin />
21
21
  ```
22
22
 
23
- {% partial file="p_usage.md" /%}
23
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
24
24
 
25
25
  ## Properties
26
26
 
27
- | Property | Type | Description |
28
- | ---------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
29
- | [camLabel?](./react/prejoinprops.camlabel.md) | string | _(Optional)_ |
30
- | [debug?](./react/prejoinprops.debug.md) | boolean | _(Optional)_ Display a debug window for your convenience. |
31
- | [defaults?](./react/prejoinprops.defaults.md) | Partial&lt;[LocalUserChoices](./react/localuserchoices.md)<!-- -->&gt; | _(Optional)_ Prefill the input form with initial values. |
32
- | [joinLabel?](./react/prejoinprops.joinlabel.md) | string | _(Optional)_ |
33
- | [micLabel?](./react/prejoinprops.miclabel.md) | string | _(Optional)_ |
34
- | [onError?](./react/prejoinprops.onerror.md) | (error: Error) =&gt; void | _(Optional)_ |
35
- | [onSubmit?](./react/prejoinprops.onsubmit.md) | (values: [LocalUserChoices](./react/localuserchoices.md)<!-- -->) =&gt; void | _(Optional)_ This function is called with the <code>LocalUserChoices</code> if validation is passed. |
36
- | [onValidate?](./react/prejoinprops.onvalidate.md) | (values: [LocalUserChoices](./react/localuserchoices.md)<!-- -->) =&gt; boolean | _(Optional)_ Provide your custom validation function. Only if validation is successful the user choices are past to the onSubmit callback. |
37
- | [userLabel?](./react/hook/prejoinprops.userlabel.md) | string | _(Optional)_ |
27
+ {% parameter name="camLabel" type="string" optional=true %}
28
+ _(Optional)_
29
+
30
+ {% /parameter %}
31
+
32
+ {% parameter name="debug" type="boolean" optional=true %}
33
+ _(Optional)_ Display a debug window for your convenience.
34
+
35
+ {% /parameter %}
36
+
37
+ {% parameter name="defaults" type="Partial<LocalUserChoices>" optional=true %}
38
+ _(Optional)_ Prefill the input form with initial values.
39
+
40
+ {% /parameter %}
41
+
42
+ {% parameter name="joinLabel" type="string" optional=true %}
43
+ _(Optional)_
44
+
45
+ {% /parameter %}
46
+
47
+ {% parameter name="micLabel" type="string" optional=true %}
48
+ _(Optional)_
49
+
50
+ {% /parameter %}
51
+
52
+ {% parameter name="onError" type="(error: Error) => void" optional=true %}
53
+ _(Optional)_
54
+
55
+ {% /parameter %}
56
+
57
+ {% parameter name="onSubmit" type="(values: LocalUserChoices) => void" optional=true %}
58
+ _(Optional)_ This function is called with the `LocalUserChoices` if validation is passed.
59
+
60
+ {% /parameter %}
61
+
62
+ {% parameter name="onValidate" type="(values: LocalUserChoices) => boolean" optional=true %}
63
+ _(Optional)_ Provide your custom validation function. Only if validation is successful the user choices are past to the onSubmit callback.
64
+
65
+ {% /parameter %}
66
+
67
+ {% parameter name="userLabel" type="string" optional=true %}
68
+ _(Optional)_
69
+
70
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # RoomAudioRenderer (component)
3
+ # RoomAudioRenderer
4
4
 
5
5
  The RoomAudioRenderer component is a drop-in solution for adding audio to your LiveKit app. It takes care of handling remote participants’ audio tracks and makes sure that microphones and screen share are audible.
6
6
 
@@ -18,4 +18,4 @@ import { RoomAudioRenderer } from '@livekit/components-react';
18
18
  </LiveKitRoom>
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # RoomName (component)
3
+ # RoomName
4
4
 
5
5
  The RoomName component renders the name of the connected LiveKit room inside a span tag.
6
6
 
@@ -18,10 +18,11 @@ import { RoomName } from '@livekit/components-react';
18
18
  </LiveKitRoom>
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
22
22
 
23
23
  ## Properties
24
24
 
25
- | Property | Type | Description |
26
- | -------------------------------------------------------------- | ------------------- | ------------ |
27
- | [childrenPosition?](./react/roomnameprops.childrenposition.md) | 'before' \| 'after' | _(Optional)_ |
25
+ {% parameter name="childrenPosition" type="'before' | 'after'" optional=true %}
26
+ _(Optional)_
27
+
28
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # StartAudio (component)
3
+ # StartAudio
4
4
 
5
5
  The StartAudio component is only visible when the browser blocks audio playback. This is due to some browser implemented autoplay policies. To start audio playback, the user must perform a user-initiated event such as clicking this button. As soon as audio playback starts, the button hides itself again.
6
6
 
@@ -18,10 +18,9 @@ import { StartAudio } from '@livekit/components-react';
18
18
  </LiveKitRoom>
19
19
  ```
20
20
 
21
- {% partial file="p_usage.md" /%}
21
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
22
22
 
23
23
  ## Properties
24
24
 
25
- | Property | Type | Description |
26
- | ------------------------------------------------- | ------ | ----------- |
27
- | [label](./react/allowaudioplaybackprops.label.md) | string | |
25
+ {% parameter name="label" type="string" optional=false %}
26
+ {% /parameter %}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # Toast (component)
3
+ # Toast
4
4
 
5
5
  ## Import
6
6
 
@@ -8,4 +8,4 @@
8
8
  import { Toast } from '@livekit/components-react';
9
9
  ```
10
10
 
11
- {% partial file="p_usage.md" /%}
11
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,6 +1,6 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- # TrackLoop (component)
3
+ # TrackLoop
4
4
 
5
5
  The TrackLoop component loops over tracks. It is for example a easy way to loop over all participant camera and screen share tracks. TrackLoop creates a TrackContext for each track that you can use to e.g. render the track.
6
6
 
@@ -21,11 +21,16 @@ const tracks = useTracks([Track.Source.Camera]);
21
21
  <TrackLoop />
22
22
  ```
23
23
 
24
- {% partial file="p_usage.md" /%}
24
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
25
25
 
26
26
  ## Properties
27
27
 
28
- | Property | Type | Description |
29
- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- |
30
- | [children](./react/trackloopprops.children.md) | React.ReactNode | The template component to be used in the loop. |
31
- | [tracks](./react/trackloopprops.tracks.md) | [TrackReference](./core/trackreference.md)<!-- -->\[\] \| [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md)<!-- -->\[\] | Track references to loop over. |
28
+ {% parameter name="children" type="React.ReactNode" optional=false %}
29
+ The template component to be used in the loop.
30
+
31
+ {% /parameter %}
32
+
33
+ {% parameter name="tracks" type="TrackReference[] | TrackReferenceOrPlaceholder[]" optional=false %}
34
+ Track references to loop over. You can the use `useTracks()` hook to get TrackReferences.
35
+
36
+ {% /parameter %}