@uservane/react: Corner
Type Alias: Corner
Section titled “Type Alias: Corner”Corner =
"bottom-right"|"bottom-left"|"top-right"|"top-left"
Defined in: browser/dist/index.d.ts:15
@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");