Skip to main content
The installer writes resources/js/components/CommentThread.vue, publishes the SDK, and wires package.json. Finish with Vue and @vitejs/plugin-vue. Vue needs no exclude — the SDK ships compiled. Still avoid optimizeDeps.include for @commentify/*. See JavaScript.

Scaffolded wrapper

The generated CommentThread.vue wraps the SDK component so it renders the full thread out of the box. Props match React: type, id, sort, perPage, loginUrl, token, baseUrl, prefix, client, ui. type is the commentables alias, not a PHP class.

Mount in a Blade view

Mount in an Inertia page

Share one client

Vue uses a plugin rather than a React-style provider:
Inside a component tree you can also provideCommentifyClient(). Both <CommentThread /> and useCommentThread() pick it up. Connection props on a single thread override the shared client for that thread only.

Headless

The Vue hook nests state under one ref (state.comments, state.status). See Hooks.
Last modified on September 12, 2026