+ Free live chat widget, loaded through a typed proxy, reactive state, and event listeners. +
+const { proxy, status, chatStatus, isHidden, unreadCount } = useScriptTawkTo({
+ propertyId: 'your-property-id',
+ widgetId: 'your-widget-id',
+})
+
+proxy.maximize()
+ const { getStatus, isChatHidden, setVisitor } = useScriptTawkTo({ ... })
+
+// proxy.getStatus() always returns undefined (proxy is fire-and-forget);
+// these call straight through to window.Tawk_API instead
+getStatus() // => 'online' | 'away' | 'offline' | undefined
+isChatHidden() // => boolean
+
+setVisitor({ name: 'Jane Doe', email: 'jane@example.com' })
+ const { onChatStarted, onChatEnded, onUnreadCountChanged } = useScriptTawkTo({ ... })
+
+const stop = onChatStarted(() => console.log('chat started'))
+onUnmounted(stop)
+