Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Exports
@firstflow/nextjs re-exports everything from @firstflow/react and adds Next.js-specific utilities.
From @firstflow/nextjs
| Export | Description |
|---|---|
FirstflowProvider | Same as @firstflow/react. Accepts initialSdkPayload for SSR hydration. |
FirstflowWidget | Same as @firstflow/react. |
Survey | Same as @firstflow/react. |
useFirstflow() | Same as @firstflow/react. |
useFirstflowSurvey() | Same as @firstflow/react. |
From @firstflow/nextjs/server
| Export | Description |
|---|---|
getFirstflowConfig() | Server-side config prefetch for use in Server Components. |
Component boundaries
FirstflowProvider, FirstflowWidget, and all hooks are Client Components. They cannot be called directly from React Server Components. getFirstflowConfig() is the only server-side export.