Back to Installation Guides
React & Next.js Package

Install Live Chat on React

Add a CSS-isolated, zero-dependency chat widget to your React app in less than 30 seconds.

1Install the npm Package

Install our lightweight `@tglivechat/widget` React wrapper from npm or pnpm:

npm install @tglivechat/widget

2Import & Embed Component

Render the <TGLiveChat /> component inside your root layout or main App component:

import { TGLiveChat } from '@tglivechat/widget'

export default function App() {
  return (
    <div>
      <YourAppContent />
      <TGLiveChat widgetId="YOUR_WIDGET_ID" />
    </div>
  )
}

3Verify Deployment

Open your React app in your browser. The floating chat bubble will mount inside an isolated Shadow DOM container.

Replies route bi-directionally to your Telegram DM or Supergroup Topic!

Don't have a Widget ID yet?

Create a free widget in 10 seconds. No credit card required.

Create Free Widget