<@U07FRRZH2GN> where can i egt livekit frontend re...
# ask-ai
f
@icy-policeman-64898 where can i egt livekit frontend react companent details, so that i can create my own custom frontend to talk to the agent
t
Thanks for reaching out, Abhishek. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
If you're looking to build a custom frontend for LiveKit using React, you've got some great options! You can either go with the
@livekit/react-components
library for handy, pre-built UI components that you can tweak, or choose
@livekit/react-core
if you want more control over state management and media rendering. Here’s a quick rundown to get you started: 1. Pick the Right SDK:
@livekit/react-components
is perfect if you want ready-made UI pieces, while
@livekit/react-core
lets you build everything from scratch. 2. Initialize the Room: Set up a
Room
instance and grab participant tokens from your backend. 3. Set Up the Connection: Use the
LiveKitRoom
component to manage connection states and token checks smoothly. 4. Use Hooks: Hooks like
useRoom
and
useLocalParticipant
help you easily access room and participant info. 5. Render Media: Components such as
VideoTrack
and
RoomAudioRenderer
let you show video and audio tracks effortlessly. 6. Customize UI: Feel free to extend or style components like
ControlBar
and
TrackToggle
so everything fits your unique design vibe. For more examples and detailed docs, check out the LiveKit React Components Documentation. And hey, if you have any questions or want a hand with anything else, just let me know—I’m here to help! Sources: frontend/pages/custom/index.tsx | frontend/src/pages/index.tsx | TEMPLATE.md | React Core and Components | JavaScript & React Components | livekit/livekit_composite | DeepWiki