@livekit/components-js-docs 0.1.1 → 0.1.3

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 (107) hide show
  1. package/LICENSE +201 -0
  2. package/generated-docs/core/chatmessage.md +2 -0
  3. package/generated-docs/core/chatoptions.md +24 -0
  4. package/generated-docs/core/createmediadeviceobserver.md +2 -1
  5. package/generated-docs/core/createurlregexp.md +4 -4
  6. package/generated-docs/core/index.md +8 -4
  7. package/generated-docs/core/loaduserchoices.md +27 -0
  8. package/generated-docs/core/localuserchoices.md +28 -0
  9. package/generated-docs/core/pinstate.md +2 -0
  10. package/generated-docs/core/receivedchatmessage.md +2 -0
  11. package/generated-docs/core/roomvideoplaybackallowedobservable.md +18 -0
  12. package/generated-docs/core/saveuserchoices.md +20 -0
  13. package/generated-docs/core/setupchat.md +1 -5
  14. package/generated-docs/core/setupstartvideo.md +20 -0
  15. package/generated-docs/core/trackreference.md +2 -0
  16. package/generated-docs/core/trackreferenceorplaceholder.md +2 -0
  17. package/generated-docs/core/trackreferenceplaceholder.md +2 -0
  18. package/generated-docs/core/widgetstate.md +2 -0
  19. package/generated-docs/react/audiotrackprops.md +12 -11
  20. package/generated-docs/react/audiotrackprops.muted.md +21 -0
  21. package/generated-docs/react/audiotrackprops.volume.md +1 -1
  22. package/generated-docs/react/audiovisualizerprops.md +4 -4
  23. package/generated-docs/react/carousellayoutprops.md +5 -5
  24. package/generated-docs/react/chatentryprops.md +6 -6
  25. package/generated-docs/react/chatmessage.md +25 -0
  26. package/generated-docs/{core/participantclickevent.track.md → react/chatmessage.message.md} +3 -3
  27. package/generated-docs/react/{chatprops.messageencoder.md → chatmessage.timestamp.md} +3 -3
  28. package/generated-docs/react/chatprops.md +2 -4
  29. package/generated-docs/react/component/audiotrack.md +6 -1
  30. package/generated-docs/react/component/chat.md +0 -10
  31. package/generated-docs/react/component/controlbar.md +5 -0
  32. package/generated-docs/react/component/layoutcontextprovider.md +35 -0
  33. package/generated-docs/react/component/livekitroom.md +5 -0
  34. package/generated-docs/react/component/mediadeviceselect.md +5 -0
  35. package/generated-docs/react/component/prejoin.md +12 -3
  36. package/generated-docs/react/component/roomaudiorenderer.md +12 -0
  37. package/generated-docs/react/controlbarprops.md +5 -4
  38. package/generated-docs/react/controlbarprops.saveuserchoices.md +17 -0
  39. package/generated-docs/react/focuslayoutcontainerprops.md +4 -4
  40. package/generated-docs/react/focuslayoutprops.md +5 -5
  41. package/generated-docs/react/focustoggleprops.md +5 -5
  42. package/generated-docs/react/gridlayoutprops.md +4 -4
  43. package/generated-docs/react/hook/useaudioplayback.md +34 -0
  44. package/generated-docs/react/hook/usechat.md +2 -5
  45. package/generated-docs/react/hook/usefacingmode.md +35 -0
  46. package/generated-docs/react/hook/useisencrypted.md +29 -0
  47. package/generated-docs/react/hook/uselivekitroom.md +3 -0
  48. package/generated-docs/react/hook/usemediadeviceselect.md +5 -0
  49. package/generated-docs/react/hook/usepagination.md +52 -0
  50. package/generated-docs/react/hook/usepersistentuserchoices.md +38 -0
  51. package/generated-docs/react/hook/usepreviewtracks.md +32 -0
  52. package/generated-docs/react/hook/usestartaudio.md +43 -0
  53. package/generated-docs/react/hook/usestartvideo.md +43 -0
  54. package/generated-docs/react/hook/useswipe.md +44 -0
  55. package/generated-docs/react/index.md +188 -163
  56. package/generated-docs/react/layoutcontextproviderprops.md +26 -0
  57. package/generated-docs/react/layoutcontextproviderprops.onpinchange.md +13 -0
  58. package/generated-docs/react/layoutcontextproviderprops.onwidgetchange.md +13 -0
  59. package/generated-docs/react/layoutcontextproviderprops.value.md +13 -0
  60. package/generated-docs/react/livekitroomprops.md +1 -0
  61. package/generated-docs/react/livekitroomprops.onencryptionerror.md +13 -0
  62. package/generated-docs/react/localuserchoices.md +4 -2
  63. package/generated-docs/react/mediadeviceselectprops.md +3 -2
  64. package/generated-docs/react/mediadeviceselectprops.onerror.md +13 -0
  65. package/generated-docs/react/messagedecoder.md +20 -0
  66. package/generated-docs/react/messageencoder.md +20 -0
  67. package/generated-docs/react/meta-data.json +1 -1
  68. package/generated-docs/react/participanttileprops.md +8 -8
  69. package/generated-docs/react/pinstate.md +20 -0
  70. package/generated-docs/react/prejoinprops.md +15 -12
  71. package/generated-docs/react/prejoinprops.persistuserchoices.md +17 -0
  72. package/generated-docs/react/prejoinprops.showe2eeoptions.md +10 -0
  73. package/generated-docs/react/{chatprops.messagedecoder.md → receivedchatmessage.from.md} +3 -3
  74. package/generated-docs/react/receivedchatmessage.md +26 -0
  75. package/generated-docs/react/roomaudiorendererprops.md +25 -0
  76. package/generated-docs/react/roomaudiorendererprops.muted.md +21 -0
  77. package/generated-docs/react/roomaudiorendererprops.volume.md +17 -0
  78. package/generated-docs/react/setloglevel.md +20 -0
  79. package/generated-docs/react/trackloopprops.md +4 -4
  80. package/generated-docs/react/trackmutedindicatorprops.md +6 -6
  81. package/generated-docs/react/trackreference.md +22 -0
  82. package/generated-docs/react/trackreferenceorplaceholder.md +20 -0
  83. package/generated-docs/react/tracktoggleprops.md +7 -7
  84. package/generated-docs/react/usefocustoggleprops.md +6 -6
  85. package/generated-docs/react/usemediadeviceselectprops.md +1 -0
  86. package/generated-docs/react/usemediadeviceselectprops.onerror.md +17 -0
  87. package/generated-docs/react/useparticipanttileprops.md +9 -9
  88. package/generated-docs/react/usepersistentuserchoicesoptions.defaults.md +17 -0
  89. package/generated-docs/react/usepersistentuserchoicesoptions.md +28 -0
  90. package/generated-docs/react/usepersistentuserchoicesoptions.preventload.md +17 -0
  91. package/generated-docs/react/usepersistentuserchoicesoptions.preventsave.md +17 -0
  92. package/generated-docs/react/usestartaudioprops.md +25 -0
  93. package/generated-docs/react/usestartaudioprops.props.md +13 -0
  94. package/generated-docs/react/usestartaudioprops.room.md +13 -0
  95. package/generated-docs/react/usestartvideoprops.md +25 -0
  96. package/generated-docs/react/usestartvideoprops.props.md +13 -0
  97. package/generated-docs/react/usestartvideoprops.room.md +13 -0
  98. package/generated-docs/react/useswipeoptions.md +22 -0
  99. package/generated-docs/react/usetrackshookreturntype.md +1 -1
  100. package/generated-docs/react/usevisualstableupdateoptions.md +3 -3
  101. package/generated-docs/react/videoconferenceprops.md +2 -2
  102. package/generated-docs/react/videotrackprops.md +12 -12
  103. package/generated-docs/react/widgetstate.md +21 -0
  104. package/package.json +5 -6
  105. package/generated-docs/core/istrackreference.md +0 -16
  106. package/generated-docs/core/participantclickevent.md +0 -23
  107. package/generated-docs/core/participantclickevent.participant.md +0 -13
@@ -0,0 +1,26 @@
1
+ ---
2
+ {
3
+ "title": "LayoutContextProviderProps interface",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/layout/LayoutContextProvider.tsx"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # LayoutContextProviderProps interface
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export interface LayoutContextProviderProps
16
+ ```
17
+
18
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
19
+
20
+ ## Properties
21
+
22
+ | Property | Type | Description |
23
+ | ----------------------------------------------------------------------- | ----------------------------------------------------------------- | ------------ |
24
+ | [onPinChange?](./react/layoutcontextproviderprops.onpinchange.md) | (state: [PinState](./react/pinstate.md)<!-- -->) =&gt; void | _(Optional)_ |
25
+ | [onWidgetChange?](./react/layoutcontextproviderprops.onwidgetchange.md) | (state: [WidgetState](./react/widgetstate.md)<!-- -->) =&gt; void | _(Optional)_ |
26
+ | [value?](./react/layoutcontextproviderprops.value.md) | [LayoutContextType](./react/layoutcontexttype.md) | _(Optional)_ |
@@ -0,0 +1,13 @@
1
+ ---
2
+ { "title": "LayoutContextProviderProps.onPinChange property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # LayoutContextProviderProps.onPinChange property
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ onPinChange?: (state: PinState) => void;
13
+ ```
@@ -0,0 +1,13 @@
1
+ ---
2
+ { "title": "LayoutContextProviderProps.onWidgetChange property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # LayoutContextProviderProps.onWidgetChange property
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ onWidgetChange?: (state: WidgetState) => void;
13
+ ```
@@ -0,0 +1,13 @@
1
+ ---
2
+ { "title": "LayoutContextProviderProps.value property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # LayoutContextProviderProps.value property
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ value?: LayoutContextType;
13
+ ```
@@ -28,6 +28,7 @@ export interface LiveKitRoomProps extends Omit<React.HTMLAttributes<HTMLDivEleme
28
28
  | [connectOptions?](./react/livekitroomprops.connectoptions.md) | RoomConnectOptions | _(Optional)_ Define options how to connect to the LiveKit server. |
29
29
  | [onConnected?](./react/livekitroomprops.onconnected.md) | () =&gt; void | _(Optional)_ |
30
30
  | [onDisconnected?](./react/livekitroomprops.ondisconnected.md) | () =&gt; void | _(Optional)_ |
31
+ | [onEncryptionError?](./react/livekitroomprops.onencryptionerror.md) | (error: Error) =&gt; void | _(Optional)_ |
31
32
  | [onError?](./react/livekitroomprops.onerror.md) | (error: Error) =&gt; void | _(Optional)_ |
32
33
  | [onMediaDeviceFailure?](./react/livekitroomprops.onmediadevicefailure.md) | (failure?: MediaDeviceFailure) =&gt; void | _(Optional)_ |
33
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. |
@@ -0,0 +1,13 @@
1
+ ---
2
+ { "title": "LiveKitRoomProps.onEncryptionError property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # LiveKitRoomProps.onEncryptionError property
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ onEncryptionError?: (error: Error) => void;
13
+ ```
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  {
3
3
  "title": "LocalUserChoices type",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/prefabs/PreJoin.tsx"
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/persistent-storage/user-choices.ts"
5
5
  }
6
6
  ---
7
7
 
@@ -9,15 +9,17 @@
9
9
 
10
10
  # LocalUserChoices type
11
11
 
12
+ Represents the user's choices for video and audio input devices, as well as their username.
13
+
12
14
  **Signature:**
13
15
 
14
16
  ```typescript
15
17
  export type LocalUserChoices = {
16
- username: string;
17
18
  videoEnabled: boolean;
18
19
  audioEnabled: boolean;
19
20
  videoDeviceId: string;
20
21
  audioDeviceId: string;
22
+ username: string;
21
23
  e2ee: boolean;
22
24
  sharedPassphrase: string;
23
25
  };
@@ -12,10 +12,10 @@
12
12
  **Signature:**
13
13
 
14
14
  ```typescript
15
- export interface MediaDeviceSelectProps extends React.HTMLAttributes<HTMLUListElement>
15
+ export interface MediaDeviceSelectProps extends Omit<React.HTMLAttributes<HTMLUListElement>, 'onError'>
16
16
  ```
17
17
 
18
- **Extends:** React.HTMLAttributes&lt;HTMLUListElement&gt;
18
+ **Extends:** Omit&lt;React.HTMLAttributes&lt;HTMLUListElement&gt;, 'onError'&gt;
19
19
 
20
20
  {% partial file="p_usage.md" variables={exampleCount: 0} /%}
21
21
 
@@ -29,5 +29,6 @@ export interface MediaDeviceSelectProps extends React.HTMLAttributes<HTMLUListEl
29
29
  | [onActiveDeviceChange?](./react/mediadeviceselectprops.onactivedevicechange.md) | (deviceId: string) =&gt; void | _(Optional)_ |
30
30
  | [onDeviceListChange?](./react/mediadeviceselectprops.ondevicelistchange.md) | (devices: MediaDeviceInfo\[\]) =&gt; void | _(Optional)_ |
31
31
  | [onDeviceSelectError?](./react/mediadeviceselectprops.ondeviceselecterror.md) | (e: Error) =&gt; void | _(Optional)_ |
32
+ | [onError?](./react/mediadeviceselectprops.onerror.md) | (e: Error) =&gt; void | _(Optional)_ |
32
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. |
33
34
  | [track?](./react/mediadeviceselectprops.track.md) | LocalAudioTrack \| LocalVideoTrack | _(Optional)_ |
@@ -0,0 +1,13 @@
1
+ ---
2
+ { "title": "MediaDeviceSelectProps.onError property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # MediaDeviceSelectProps.onError property
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ onError?: (e: Error) => void;
13
+ ```
@@ -0,0 +1,20 @@
1
+ ---
2
+ {
3
+ "title": "MessageDecoder type",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/components/chat.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # MessageDecoder type
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type MessageDecoder = (message: Uint8Array) => ReceivedChatMessage;
16
+ ```
17
+
18
+ **References:** [ReceivedChatMessage](./react/receivedchatmessage.md)
19
+
20
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -0,0 +1,20 @@
1
+ ---
2
+ {
3
+ "title": "MessageEncoder type",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/components/chat.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # MessageEncoder type
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type MessageEncoder = (message: ChatMessage) => Uint8Array;
16
+ ```
17
+
18
+ **References:** [ChatMessage](./react/chatmessage.md)
19
+
20
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1 +1 @@
1
- {"components":[{"filename":"audioconference.md","title":"AudioConference"},{"filename":"audiotrack.md","title":"AudioTrack"},{"filename":"audiovisualizer.md","title":"AudioVisualizer"},{"filename":"carousellayout.md","title":"CarouselLayout"},{"filename":"chat.md","title":"Chat"},{"filename":"chatentry.md","title":"ChatEntry"},{"filename":"chattoggle.md","title":"ChatToggle"},{"filename":"clearpinbutton.md","title":"ClearPinButton"},{"filename":"connectionqualityindicator.md","title":"ConnectionQualityIndicator"},{"filename":"connectionstate.md","title":"ConnectionState"},{"filename":"connectionstatetoast.md","title":"ConnectionStateToast"},{"filename":"controlbar.md","title":"ControlBar"},{"filename":"disconnectbutton.md","title":"DisconnectButton"},{"filename":"focuslayout.md","title":"FocusLayout"},{"filename":"focuslayoutcontainer.md","title":"FocusLayoutContainer"},{"filename":"focustoggle.md","title":"FocusToggle"},{"filename":"gridlayout.md","title":"GridLayout"},{"filename":"livekitroom.md","title":"LiveKitRoom"},{"filename":"mediadevicemenu.md","title":"MediaDeviceMenu"},{"filename":"mediadeviceselect.md","title":"MediaDeviceSelect"},{"filename":"participantaudiotile.md","title":"ParticipantAudioTile"},{"filename":"participantcontextifneeded.md","title":"ParticipantContextIfNeeded"},{"filename":"participantloop.md","title":"ParticipantLoop"},{"filename":"participantname.md","title":"ParticipantName"},{"filename":"participanttile.md","title":"ParticipantTile"},{"filename":"prejoin.md","title":"PreJoin"},{"filename":"roomaudiorenderer.md","title":"RoomAudioRenderer"},{"filename":"roomname.md","title":"RoomName"},{"filename":"startaudio.md","title":"StartAudio"},{"filename":"toast.md","title":"Toast"},{"filename":"trackloop.md","title":"TrackLoop"},{"filename":"trackmutedindicator.md","title":"TrackMutedIndicator"},{"filename":"tracktoggle.md","title":"TrackToggle"},{"filename":"videoconference.md","title":"VideoConference"},{"filename":"videotrack.md","title":"VideoTrack"}],"hooks":[{"filename":"usechat.md","title":"useChat"},{"filename":"usechattoggle.md","title":"useChatToggle"},{"filename":"useclearpinbutton.md","title":"useClearPinButton"},{"filename":"useconnectionqualityindicator.md","title":"useConnectionQualityIndicator"},{"filename":"useconnectionstate.md","title":"useConnectionState"},{"filename":"usecreatelayoutcontext.md","title":"useCreateLayoutContext"},{"filename":"usedatachannel.md","title":"useDataChannel"},{"filename":"usedatachannel_1.md","title":"useDataChannel"},{"filename":"usedisconnectbutton.md","title":"useDisconnectButton"},{"filename":"useensurecreatelayoutcontext.md","title":"useEnsureCreateLayoutContext"},{"filename":"useensurelayoutcontext.md","title":"useEnsureLayoutContext"},{"filename":"useensureparticipant.md","title":"useEnsureParticipant"},{"filename":"useensureroom.md","title":"useEnsureRoom"},{"filename":"useensuretrackref.md","title":"useEnsureTrackRef"},{"filename":"useensuretrackreference.md","title":"useEnsureTrackReference"},{"filename":"usefocustoggle.md","title":"useFocusToggle"},{"filename":"usegridlayout.md","title":"useGridLayout"},{"filename":"useismuted.md","title":"useIsMuted"},{"filename":"useismuted_1.md","title":"useIsMuted"},{"filename":"useisspeaking.md","title":"useIsSpeaking"},{"filename":"uselayoutcontext.md","title":"useLayoutContext"},{"filename":"uselivekitroom.md","title":"useLiveKitRoom"},{"filename":"uselocalparticipant.md","title":"useLocalParticipant"},{"filename":"uselocalparticipantpermissions.md","title":"useLocalParticipantPermissions"},{"filename":"usemaybelayoutcontext.md","title":"useMaybeLayoutContext"},{"filename":"usemaybeparticipantcontext.md","title":"useMaybeParticipantContext"},{"filename":"usemayberoomcontext.md","title":"useMaybeRoomContext"},{"filename":"usemaybetrackcontext.md","title":"useMaybeTrackContext"},{"filename":"usemaybetrackrefcontext.md","title":"useMaybeTrackRefContext"},{"filename":"usemediadevices.md","title":"useMediaDevices"},{"filename":"usemediadeviceselect.md","title":"useMediaDeviceSelect"},{"filename":"usemediatrack.md","title":"useMediaTrack"},{"filename":"usemediatrackbyname.md","title":"useMediaTrackByName"},{"filename":"useparticipantcontext.md","title":"useParticipantContext"},{"filename":"useparticipantinfo.md","title":"useParticipantInfo"},{"filename":"useparticipantpermissions.md","title":"useParticipantPermissions"},{"filename":"useparticipants.md","title":"useParticipants"},{"filename":"useparticipanttile.md","title":"useParticipantTile"},{"filename":"usepinnedtracks.md","title":"usePinnedTracks"},{"filename":"usepreviewdevice.md","title":"usePreviewDevice"},{"filename":"useremoteparticipant.md","title":"useRemoteParticipant"},{"filename":"useremoteparticipants.md","title":"useRemoteParticipants"},{"filename":"useroomcontext.md","title":"useRoomContext"},{"filename":"useroominfo.md","title":"useRoomInfo"},{"filename":"usesortedparticipants.md","title":"useSortedParticipants"},{"filename":"usespeakingparticipants.md","title":"useSpeakingParticipants"},{"filename":"usetoken.md","title":"useToken"},{"filename":"usetrack.md","title":"useTrack"},{"filename":"usetrackbyname.md","title":"useTrackByName"},{"filename":"usetrackcontext.md","title":"useTrackContext"},{"filename":"usetrackmutedindicator.md","title":"useTrackMutedIndicator"},{"filename":"usetrackmutedindicator_1.md","title":"useTrackMutedIndicator"},{"filename":"usetrackrefcontext.md","title":"useTrackRefContext"},{"filename":"usetracks.md","title":"useTracks"},{"filename":"usetracktoggle.md","title":"useTrackToggle"},{"filename":"usevisualstableupdate.md","title":"useVisualStableUpdate"}]}
1
+ {"components":[{"filename":"audioconference.md","title":"AudioConference"},{"filename":"audiotrack.md","title":"AudioTrack"},{"filename":"audiovisualizer.md","title":"AudioVisualizer"},{"filename":"carousellayout.md","title":"CarouselLayout"},{"filename":"chat.md","title":"Chat"},{"filename":"chatentry.md","title":"ChatEntry"},{"filename":"chattoggle.md","title":"ChatToggle"},{"filename":"clearpinbutton.md","title":"ClearPinButton"},{"filename":"connectionqualityindicator.md","title":"ConnectionQualityIndicator"},{"filename":"connectionstate.md","title":"ConnectionState"},{"filename":"connectionstatetoast.md","title":"ConnectionStateToast"},{"filename":"controlbar.md","title":"ControlBar"},{"filename":"disconnectbutton.md","title":"DisconnectButton"},{"filename":"focuslayout.md","title":"FocusLayout"},{"filename":"focuslayoutcontainer.md","title":"FocusLayoutContainer"},{"filename":"focustoggle.md","title":"FocusToggle"},{"filename":"gridlayout.md","title":"GridLayout"},{"filename":"layoutcontextprovider.md","title":"LayoutContextProvider"},{"filename":"livekitroom.md","title":"LiveKitRoom"},{"filename":"mediadevicemenu.md","title":"MediaDeviceMenu"},{"filename":"mediadeviceselect.md","title":"MediaDeviceSelect"},{"filename":"participantaudiotile.md","title":"ParticipantAudioTile"},{"filename":"participantcontextifneeded.md","title":"ParticipantContextIfNeeded"},{"filename":"participantloop.md","title":"ParticipantLoop"},{"filename":"participantname.md","title":"ParticipantName"},{"filename":"participanttile.md","title":"ParticipantTile"},{"filename":"prejoin.md","title":"PreJoin"},{"filename":"roomaudiorenderer.md","title":"RoomAudioRenderer"},{"filename":"roomname.md","title":"RoomName"},{"filename":"startaudio.md","title":"StartAudio"},{"filename":"toast.md","title":"Toast"},{"filename":"trackloop.md","title":"TrackLoop"},{"filename":"trackmutedindicator.md","title":"TrackMutedIndicator"},{"filename":"tracktoggle.md","title":"TrackToggle"},{"filename":"videoconference.md","title":"VideoConference"},{"filename":"videotrack.md","title":"VideoTrack"}],"hooks":[{"filename":"useaudioplayback.md","title":"useAudioPlayback"},{"filename":"usechat.md","title":"useChat"},{"filename":"usechattoggle.md","title":"useChatToggle"},{"filename":"useclearpinbutton.md","title":"useClearPinButton"},{"filename":"useconnectionqualityindicator.md","title":"useConnectionQualityIndicator"},{"filename":"useconnectionstate.md","title":"useConnectionState"},{"filename":"usecreatelayoutcontext.md","title":"useCreateLayoutContext"},{"filename":"usedatachannel.md","title":"useDataChannel"},{"filename":"usedatachannel_1.md","title":"useDataChannel"},{"filename":"usedisconnectbutton.md","title":"useDisconnectButton"},{"filename":"useensurecreatelayoutcontext.md","title":"useEnsureCreateLayoutContext"},{"filename":"useensurelayoutcontext.md","title":"useEnsureLayoutContext"},{"filename":"useensureparticipant.md","title":"useEnsureParticipant"},{"filename":"useensureroom.md","title":"useEnsureRoom"},{"filename":"useensuretrackref.md","title":"useEnsureTrackRef"},{"filename":"useensuretrackreference.md","title":"useEnsureTrackReference"},{"filename":"usefacingmode.md","title":"useFacingMode"},{"filename":"usefocustoggle.md","title":"useFocusToggle"},{"filename":"usegridlayout.md","title":"useGridLayout"},{"filename":"useisencrypted.md","title":"useIsEncrypted"},{"filename":"useismuted.md","title":"useIsMuted"},{"filename":"useismuted_1.md","title":"useIsMuted"},{"filename":"useisspeaking.md","title":"useIsSpeaking"},{"filename":"uselayoutcontext.md","title":"useLayoutContext"},{"filename":"uselivekitroom.md","title":"useLiveKitRoom"},{"filename":"uselocalparticipant.md","title":"useLocalParticipant"},{"filename":"uselocalparticipantpermissions.md","title":"useLocalParticipantPermissions"},{"filename":"usemaybelayoutcontext.md","title":"useMaybeLayoutContext"},{"filename":"usemaybeparticipantcontext.md","title":"useMaybeParticipantContext"},{"filename":"usemayberoomcontext.md","title":"useMaybeRoomContext"},{"filename":"usemaybetrackcontext.md","title":"useMaybeTrackContext"},{"filename":"usemaybetrackrefcontext.md","title":"useMaybeTrackRefContext"},{"filename":"usemediadevices.md","title":"useMediaDevices"},{"filename":"usemediadeviceselect.md","title":"useMediaDeviceSelect"},{"filename":"usemediatrack.md","title":"useMediaTrack"},{"filename":"usemediatrackbyname.md","title":"useMediaTrackByName"},{"filename":"usepagination.md","title":"usePagination"},{"filename":"useparticipantcontext.md","title":"useParticipantContext"},{"filename":"useparticipantinfo.md","title":"useParticipantInfo"},{"filename":"useparticipantpermissions.md","title":"useParticipantPermissions"},{"filename":"useparticipants.md","title":"useParticipants"},{"filename":"useparticipanttile.md","title":"useParticipantTile"},{"filename":"usepersistentuserchoices.md","title":"usePersistentUserChoices"},{"filename":"usepinnedtracks.md","title":"usePinnedTracks"},{"filename":"usepreviewdevice.md","title":"usePreviewDevice"},{"filename":"usepreviewtracks.md","title":"usePreviewTracks"},{"filename":"useremoteparticipant.md","title":"useRemoteParticipant"},{"filename":"useremoteparticipants.md","title":"useRemoteParticipants"},{"filename":"useroomcontext.md","title":"useRoomContext"},{"filename":"useroominfo.md","title":"useRoomInfo"},{"filename":"usesortedparticipants.md","title":"useSortedParticipants"},{"filename":"usespeakingparticipants.md","title":"useSpeakingParticipants"},{"filename":"usestartaudio.md","title":"useStartAudio"},{"filename":"usestartvideo.md","title":"useStartVideo"},{"filename":"useswipe.md","title":"useSwipe"},{"filename":"usetoken.md","title":"useToken"},{"filename":"usetrack.md","title":"useTrack"},{"filename":"usetrackbyname.md","title":"useTrackByName"},{"filename":"usetrackcontext.md","title":"useTrackContext"},{"filename":"usetrackmutedindicator.md","title":"useTrackMutedIndicator"},{"filename":"usetrackmutedindicator_1.md","title":"useTrackMutedIndicator"},{"filename":"usetrackrefcontext.md","title":"useTrackRefContext"},{"filename":"usetracks.md","title":"useTracks"},{"filename":"usetracktoggle.md","title":"useTrackToggle"},{"filename":"usevisualstableupdate.md","title":"useVisualStableUpdate"}]}
@@ -21,11 +21,11 @@ export interface ParticipantTileProps extends React.HTMLAttributes<HTMLDivElemen
21
21
 
22
22
  ## Properties
23
23
 
24
- | Property | Type | Description |
25
- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------- |
26
- | [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
27
- | [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) =&gt; void | _(Optional)_ |
28
- | [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
29
- | [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
30
- | [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
31
- | [trackRef?](./react/participanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
24
+ | Property | Type | Description |
25
+ | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------- |
26
+ | [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
27
+ | [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) =&gt; void | _(Optional)_ |
28
+ | [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
29
+ | [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
30
+ | [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
31
+ | [trackRef?](./react/participanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
@@ -0,0 +1,20 @@
1
+ ---
2
+ {
3
+ "title": "PinState type",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/types.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # PinState type
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type PinState = TrackReferenceOrPlaceholder[];
16
+ ```
17
+
18
+ **References:** [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)
19
+
20
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -9,6 +9,8 @@
9
9
 
10
10
  # PreJoinProps interface
11
11
 
12
+ Props for the PreJoin component.
13
+
12
14
  **Signature:**
13
15
 
14
16
  ```typescript
@@ -21,15 +23,16 @@ export interface PreJoinProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
21
23
 
22
24
  ## Properties
23
25
 
24
- | Property | Type | Description |
25
- | ----------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
26
- | [camLabel?](./react/prejoinprops.camlabel.md) | string | _(Optional)_ |
27
- | [debug?](./react/prejoinprops.debug.md) | boolean | _(Optional)_ Display a debug window for your convenience. |
28
- | [defaults?](./react/prejoinprops.defaults.md) | Partial&lt;[LocalUserChoices](./react/localuserchoices.md)<!-- -->&gt; | _(Optional)_ Prefill the input form with initial values. |
29
- | [joinLabel?](./react/prejoinprops.joinlabel.md) | string | _(Optional)_ |
30
- | [micLabel?](./react/prejoinprops.miclabel.md) | string | _(Optional)_ |
31
- | [onError?](./react/prejoinprops.onerror.md) | (error: Error) =&gt; void | _(Optional)_ |
32
- | [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. |
33
- | [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. |
34
- | [showE2EEOptions?](./react/prejoinprops.showe2eeoptions.md) | boolean | _(Optional)_ |
35
- | [userLabel?](./react/prejoinprops.userlabel.md) | string | _(Optional)_ |
26
+ | Property | Type | Description |
27
+ | ----------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
28
+ | [camLabel?](./react/prejoinprops.camlabel.md) | string | _(Optional)_ |
29
+ | [debug?](./react/prejoinprops.debug.md) | boolean | _(Optional)_ Display a debug window for your convenience. |
30
+ | [defaults?](./react/prejoinprops.defaults.md) | Partial&lt;[LocalUserChoices](./react/localuserchoices.md)<!-- -->&gt; | _(Optional)_ Prefill the input form with initial values. |
31
+ | [joinLabel?](./react/prejoinprops.joinlabel.md) | string | _(Optional)_ |
32
+ | [micLabel?](./react/prejoinprops.miclabel.md) | string | _(Optional)_ |
33
+ | [onError?](./react/prejoinprops.onerror.md) | (error: Error) =&gt; void | _(Optional)_ |
34
+ | [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. |
35
+ | [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. |
36
+ | [persistUserChoices?](./react/prejoinprops.persistuserchoices.md) | boolean | _(Optional)_ If true, user choices are persisted across sessions. |
37
+ | [showE2EEOptions?](./react/prejoinprops.showe2eeoptions.md) | boolean | _(Optional)_ |
38
+ | [userLabel?](./react/prejoinprops.userlabel.md) | string | _(Optional)_ |
@@ -0,0 +1,17 @@
1
+ ---
2
+ { "title": "PreJoinProps.persistUserChoices property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # PreJoinProps.persistUserChoices property
8
+
9
+ If true, user choices are persisted across sessions.
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ persistUserChoices?: boolean;
15
+ ```
16
+
17
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -6,8 +6,18 @@
6
6
 
7
7
  # PreJoinProps.showE2EEOptions property
8
8
 
9
+ {% callout type="caution" variation="normal" %}
10
+
11
+ This API is deprecated:
12
+
13
+ E2EE options will be removed from PreJoin in a future version \*
14
+
15
+ {% /callout %}
16
+
9
17
  **Signature:**
10
18
 
11
19
  ```typescript
12
20
  showE2EEOptions?: boolean;
13
21
  ```
22
+
23
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,13 +1,13 @@
1
1
  ---
2
- { "title": "ChatProps.messageDecoder property" }
2
+ { "title": "ReceivedChatMessage.from property" }
3
3
  ---
4
4
 
5
5
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
6
 
7
- # ChatProps.messageDecoder property
7
+ # ReceivedChatMessage.from property
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- messageDecoder?: MessageDecoder;
12
+ from?: Participant;
13
13
  ```
@@ -0,0 +1,26 @@
1
+ ---
2
+ {
3
+ "title": "ReceivedChatMessage interface",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/components/chat.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # ReceivedChatMessage interface
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export interface ReceivedChatMessage extends ChatMessage
16
+ ```
17
+
18
+ **Extends:** [ChatMessage](./react/chatmessage.md)
19
+
20
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
21
+
22
+ ## Properties
23
+
24
+ | Property | Type | Description |
25
+ | -------------------------------------------- | ----------- | ------------ |
26
+ | [from?](./react/receivedchatmessage.from.md) | Participant | _(Optional)_ |
@@ -0,0 +1,25 @@
1
+ ---
2
+ {
3
+ "title": "RoomAudioRendererProps interface",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/RoomAudioRenderer.tsx"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # RoomAudioRendererProps interface
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export interface RoomAudioRendererProps
16
+ ```
17
+
18
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
19
+
20
+ ## Properties
21
+
22
+ | Property | Type | Description |
23
+ | --------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
24
+ | [muted?](./react/roomaudiorendererprops.muted.md) | boolean | _(Optional)_ If set to <code>true</code>, mutes all audio tracks rendered by the component. |
25
+ | [volume?](./react/roomaudiorendererprops.volume.md) | number | _(Optional)_ Sets the volume for all audio tracks rendered by this component. By default, the range is between <code>0.0</code> and <code>1.0</code>. |
@@ -0,0 +1,21 @@
1
+ ---
2
+ { "title": "RoomAudioRendererProps.muted property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # RoomAudioRendererProps.muted property
8
+
9
+ If set to `true`<!-- -->, mutes all audio tracks rendered by the component.
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ muted?: boolean;
15
+ ```
16
+
17
+ ## Remarks
18
+
19
+ If set to `true`<!-- -->, the server will stop sending audio track data to the client.
20
+
21
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -0,0 +1,17 @@
1
+ ---
2
+ { "title": "RoomAudioRendererProps.volume property" }
3
+ ---
4
+
5
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
+
7
+ # RoomAudioRendererProps.volume property
8
+
9
+ Sets the volume for all audio tracks rendered by this component. By default, the range is between `0.0` and `1.0`<!-- -->.
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ volume?: number;
15
+ ```
16
+
17
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -0,0 +1,20 @@
1
+ ---
2
+ {
3
+ "title": "setLogLevel",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/logger.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # setLogLevel
11
+
12
+ Set the log level for both the `@livekit/components-react` package and the `@livekit-client` package. To set the `@livekit-client` log independently, use the `liveKitClientLogLevel` prop on the `options` object.
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ export declare function setLogLevel(level: LogLevel, options?: SetLogLevelOptions): void;
18
+ ```
19
+
20
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -19,7 +19,7 @@ export interface TrackLoopProps
19
19
 
20
20
  ## Properties
21
21
 
22
- | Property | Type | Description |
23
- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------- |
24
- | [children](./react/trackloopprops.children.md) | React.ReactNode | The template component to be used in the loop. |
25
- | [tracks](./react/trackloopprops.tracks.md) | [TrackReference](./core/trackreference.md)<!-- -->\[\] \| [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md)<!-- -->\[\] | Track references to loop over. You can the use <code>useTracks()</code> hook to get TrackReferences. |
22
+ | Property | Type | Description |
23
+ | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
24
+ | [children](./react/trackloopprops.children.md) | React.ReactNode | The template component to be used in the loop. |
25
+ | [tracks](./react/trackloopprops.tracks.md) | [TrackReference](./react/trackreference.md)<!-- -->\[\] \| [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)<!-- -->\[\] | Track references to loop over. You can the use <code>useTracks()</code> hook to get TrackReferences. |
@@ -21,9 +21,9 @@ export interface TrackMutedIndicatorProps extends React.HTMLAttributes<HTMLDivEl
21
21
 
22
22
  ## Properties
23
23
 
24
- | Property | Type | Description |
25
- | --------------------------------------------------------------- | -------------------------------------------------------------------- | ------------ |
26
- | [participant?](./react/trackmutedindicatorprops.participant.md) | Participant | _(Optional)_ |
27
- | [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
28
- | [source?](./react/trackmutedindicatorprops.source.md) | Track.Source | _(Optional)_ |
29
- | [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ |
24
+ | Property | Type | Description |
25
+ | --------------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
26
+ | [participant?](./react/trackmutedindicatorprops.participant.md) | Participant | _(Optional)_ |
27
+ | [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
28
+ | [source?](./react/trackmutedindicatorprops.source.md) | Track.Source | _(Optional)_ |
29
+ | [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
@@ -0,0 +1,22 @@
1
+ ---
2
+ {
3
+ "title": "TrackReference type",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/track-reference/track-reference.types.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # TrackReference type
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type TrackReference = {
16
+ participant: Participant;
17
+ publication: TrackPublication;
18
+ source: Track.Source;
19
+ };
20
+ ```
21
+
22
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -0,0 +1,20 @@
1
+ ---
2
+ {
3
+ "title": "TrackReferenceOrPlaceholder type",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/track-reference/track-reference.types.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # TrackReferenceOrPlaceholder type
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type TrackReferenceOrPlaceholder = TrackReference | TrackReferencePlaceholder;
16
+ ```
17
+
18
+ **References:** [TrackReference](./react/trackreference.md)
19
+
20
+ {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -21,10 +21,10 @@ export interface TrackToggleProps<T extends ToggleSource> extends Omit<React.But
21
21
 
22
22
  ## Properties
23
23
 
24
- | Property | Type | Description |
25
- | ------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------ |
26
- | [captureOptions?](./react/tracktoggleprops.captureoptions.md) | [CaptureOptionsBySource](./core/captureoptionsbysource.md)<!-- -->&lt;T&gt; | _(Optional)_ |
27
- | [initialState?](./react/tracktoggleprops.initialstate.md) | boolean | _(Optional)_ |
28
- | [onChange?](./react/tracktoggleprops.onchange.md) | (enabled: boolean) =&gt; void | _(Optional)_ |
29
- | [showIcon?](./react/tracktoggleprops.showicon.md) | boolean | _(Optional)_ |
30
- | [source](./react/tracktoggleprops.source.md) | T | |
24
+ | Property | Type | Description |
25
+ | ------------------------------------------------------------- | ------------------------------- | ------------ |
26
+ | [captureOptions?](./react/tracktoggleprops.captureoptions.md) | CaptureOptionsBySource&lt;T&gt; | _(Optional)_ |
27
+ | [initialState?](./react/tracktoggleprops.initialstate.md) | boolean | _(Optional)_ |
28
+ | [onChange?](./react/tracktoggleprops.onchange.md) | (enabled: boolean) =&gt; void | _(Optional)_ |
29
+ | [showIcon?](./react/tracktoggleprops.showicon.md) | boolean | _(Optional)_ |
30
+ | [source](./react/tracktoggleprops.source.md) | T | |