How can i disable chat in livekit VideoConference ...
# ask-ai
e
How can i disable chat in livekit VideoConference component
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Regarding disabling chat in the VideoConference component: set the frontend config option
supportsChatInput
to
false
. If you want, tell me where you're editing the config (app-level props, a JSON config file, or a specific starter template) and I can show the exact code snippet to change. Sources: client-sdk-js | livekit/livekit_composite | DeepWiki
e
show me code, how can i do that
t
You're looking to disable chat in the LiveKit VideoConference component — set
supportsChatInput
to
false
. Below are two common ways to do this. 1) If you're using the React component directly (example with
@livekit/components-react
):
Copy code
import React from "react";
import { LiveKitRoom } from "@livekit/components-react";

export default function App({ token }: { token: string }) {
  return (
    <LiveKitRoom
      serverUrl={process.env.NEXT_PUBLIC_LIVEKIT_URL}
      token={token}
      connect={true}
      audio={true}
      video={true}
      supportsChatInput={false} // <-- disable chat input
    >
      {/* Your room UI */}
    </LiveKitRoom>
  );
}
2) If you configure via a template (e.g.,
templates.yaml
for an agent starter):
Copy code
name: "agent-starter-react"
inputs:
  companyName: "MyCompany"
  pageTitle: "Video Conference"
  supportsChatInput: false   # <-- disable chat input
  supportsVideoInput: true
  supportsScreenShare: true
  isPreConnectBufferEnabled: true
Which setup are you using (direct React component or a template)? I can tailor the exact snippet to your project. Sources: Examples | livekit/livekit_composite | DeepWiki | client-sdk-js | livekit/livekit_composite | DeepWiki
e
<RoomContext.Provider value={room}> <VideoConference /> </RoomContext.Provider> I am using the component this way
t
Thanks — since you wrap <VideoConference /> in RoomContext, you can disable chat by passing
chatMessageFormatter={null}
(or setting
supportsChatInput={false}
if that prop exists in your version) directly on the component. Example with your pattern:
Copy code
import { RoomContext, VideoConference } from "@livekit/components-react";

<RoomContext.Provider value={room}>
  <VideoConference chatMessageFormatter={null} />
</RoomContext.Provider>
If
chatMessageFormatter
doesn't remove the input in your build, try:
Copy code
<RoomContext.Provider value={room}>
  <VideoConference supportsChatInput={false} />
</RoomContext.Provider>
Which of the two props does your version support? Tell me the package version (e.g., the version in package.json) and I’ll give the exact snippet. Sources: Client SDKs | livekit/livekit_composite | DeepWiki