Skip to content

@uservane/react: IdentifyOptions

IdentifyOptions = object

Defined in: browser/dist/index.d.ts:10

@uservane/react - thin React wrapper over @uservane/browser.

Does not reimplement the widget or show-decision; it only wires init, identify, and survey through a provider, hook, and error boundary.

Next.js App Router: this module is a Client Component ("use client"). Import UserVaneProvider from a client boundary (or a file that already has "use client"). No window access at import time.

import { UserVaneProvider, useUserVane } from "@uservane/react";
<UserVaneProvider apiKey="uv_pk_live_...">
<App />
</UserVaneProvider>
// inside a child:
const { survey, identify } = useUserVane();
survey("nps-q1");

optional traits?: Record<string, unknown>

Defined in: browser/dist/index.d.ts:12


userId: string

Defined in: browser/dist/index.d.ts:11