@uservane/react: Presentation
Type Alias: Presentation
Section titled “Type Alias: Presentation”Presentation =
"corner"|"inline"|"banner"
Defined in: browser/dist/index.d.ts:14
@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");