Vue uses @alzaf-it/chat-vue and @alzaf-it/chat-sdk, without React dependencies.
import { h, defineComponent, onBeforeUnmount } from 'vue';
import { ChatClient } from '@alzaf-it/chat-sdk';
import { ChatPanel } from '@alzaf-it/chat-vue';
export default defineComponent({ setup() {
const client = new ChatClient({ apiBaseUrl: 'https://chat.example.com/api/chat', token: currentUserToken });
onBeforeUnmount(() => client.disconnect());
return () => h(ChatPanel, { client, title: 'Messages', height: '620px' });
}});currentUserToken is supplied by your host. Without reverb configuration this runs in REST-only mode. See configuration and behavior. Keep the client prop stable; remount the panel when replacing it. Component unmount closes subscriptions, while the host disconnects its owned client.
Message cards, including staged product/order suggestions, render through the generic cardView layout (image, title, description, one HTTPS action). The in-thread host renderer registry is React-only, so Vue always uses the generic card. See message cards for the contract and the suggestCard host flow.
Attachments and emoji work identically to React without extra setup: the panel adds attach and emoji controls to the composer, stages uploads with a removable chip, and renders images as previews and PDFs as named download chips. Attachment tiles are siblings after the message bubble (.attachments after .bubble in the shared chatStyles), so an attachment-only message has no empty bubble; the sender label and timestamp also sit outside the tinted bubble. Because bytes are handled by the SDK, the Vue adapter inherits the server's upload mode, including the proxy fallback when a direct-to-S3 PUT fails. There is no Vue prop for attachment limits: the session mirrors the server limits, which stay authoritative.
Runnable example: pnpm --filter @alzaf/vue-demo dev after package builds. Vite binds 0.0.0.0:5173. Open http://YOUR_LAN_IP:5173 and select Shope/Nexzan plus customer/seller/admin for local demo sign-in, or enter a host-issued user token. Defaults derive API/Reverb host from the browser hostname; ensure API port 8000 and Reverb port 8085 are reachable. Build: pnpm --filter @alzaf/vue-demo build.
Demo sign-in is rendered only when Vite import.meta.env.DEV is true; the production build retains only the host-issued-token path. It posts {email:"[email protected]",password:"DemoPassword123!"} (selected role/service vary) to /api/demo/login, derived from the API URL. That endpoint itself must run only in backend local/testing mode. Seed example accounts before testing. Returned user tokens stay in memory and are discarded on Disconnect or page reload. The public demo password is exclusively for seeded disposable local accounts. HTTP 401 means seed/configuration mismatch, 429 means wait before retry, and 403/404 indicates the local demo route is unavailable. No demo login is part of the reusable package.