Skip to content

@uservane/react: SurveyType

SurveyType = "nps" | "csat" | "ces" | "pmf"

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

@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");