@tkawen/liqaa-react
English — React hooks and components for LIQAA Cloud — drop-in video calls + messaging
عربي — خطافات ومكوّنات React لـ LIQAA.
Install · التثبيت
Section titled “Install · التثبيت”npm install @tkawen/liqaa-reactReact hooks + components for LIQAA Cloud. Built on top of
@tkawen/liqaa-js.
Install
Section titled “Install”npm install @tkawen/liqaa-react @tkawen/liqaa-jsQuick start
Section titled “Quick start”import { LIQAAProvider, LIQAACallButton } from '@tkawen/liqaa-react';
function App() { return ( <LIQAAProvider publicKey="pk_live_..." sdkToken={sdkTokenFromYourServer} accent="#1d4ed8" > <YourApp /> <LIQAACallButton email="support@yoursite.com" name="Support"> Talk to Support </LIQAACallButton> </LIQAAProvider> );}useLIQAA()
Section titled “useLIQAA()”Returns the LIQAA client (or null while still loading).
import { useLIQAA } from '@tkawen/liqaa-react';
function CustomCallButton({ email }: { email: string }) { const liqaa = useLIQAA(); return ( <button onClick={() => liqaa?.startCall(email)} disabled={!liqaa}> Call </button> );}useLIQAAStatus()
Section titled “useLIQAAStatus()”Returns { status: 'loading' | 'ready' | 'error', error: Error | null }.
const { status, error } = useLIQAAStatus();if (status === 'error') return <div>Failed to load: {error?.message}</div>;Components
Section titled “Components”<LIQAAProvider>
Section titled “<LIQAAProvider>”Wraps your app and initializes the SDK once. All LIQAAInitOptions from @tkawen/liqaa-js are accepted as props.
<LIQAACallButton email name>
Section titled “<LIQAACallButton email name>”Drop-in button that starts a video call. Disabled until SDK is ready.
<LIQAAChatButton email name>
Section titled “<LIQAAChatButton email name>”Drop-in button that opens a chat thread.
Server-side rendering
Section titled “Server-side rendering”Both components are SSR-safe — they render the disabled fallback on the server. The SDK initializes on the client after hydration.
TypeScript
Section titled “TypeScript”Full types ship with the package. All callbacks are properly typed.
License
Section titled “License”MIT © TKAWEN GROUP
🏛️ TKAWEN Ecosystem · منظومة تكوّن
Section titled “🏛️ TKAWEN Ecosystem · منظومة تكوّن”EN — Part of TKAWEN, Algeria’s software ecosystem: commerce, certification, meetings and AI infrastructure. One organisation, one trust layer.
عربي — جزء من تكوّن، المنظومة البرمجية الجزائرية: تجارة، توثيق، اجتماعات، وبنية ذكاء اصطناعي. مؤسّسة واحدة، طبقة ثقة واحدة.
Packages · الحزم: @tkawen/mystoq-sdk · @tkawen/mystoq-react · @tkawen/mystoq-mcp-server · @tkawen/mystoq-seo-toolkit · @tkawen/mystoq-maystro-bridge · @tkawen/mystoq-whatsapp-bridge · @tkawen/mystoq-yalidine-bridge · @tkawen/liqaa-js · @tkawen/liqaa-react
MCP Gateway: mcp.tkawen.com — official in the Model Context Protocol Registry (com.tkawen/intelligence-gateway)
Web: tkawen.com · Author · المؤلّف: Hartem Yaakoub · License: MIT