Skip to content
FeedunaDeveloper docs

Add customer feedback to your Next.js app

Put a shadcn/ui button next to the feature or AI answer your customer wants to flag. Feeduna attaches that reference so your team can review the report and send it to Linear.

Try the widget on localhost before signing up.

Install the component

Run this in a Next.js project with shadcn/ui configured. Then open App setup and register your app’s exact origin, such as https://app.example.com. Under Install widget → React / shadcn, copy the component with your app’s public project ID.

Add the feedback button
npx shadcn@latest add https://app.feeduna.com/r/feeduna-feedback-button.json

View the registry item · Configure a Content Security Policy nonce

Find the button with shadcn search or MCP

Register @feeduna in your project so your coding assistant can find it with shadcn MCP.

Add the Feeduna registry
npx shadcn@latest registry add "@feeduna=https://app.feeduna.com/r/{name}.json"
Search the Feeduna registry
npx shadcn@latest search @feeduna --query feedback
Install the button by name
npx shadcn@latest add @feeduna/feeduna-feedback-button

Attach the feature or answer

Use a stable feature ID, such as reports.export. The button loads the widget when you pass your project ID. If the same app’s layout already loads the widget, you can omit that prop.

Ask for feedback on an export feature
import { FeedunaFeedbackButton } from "@/components/feeduna-feedback-button";

<FeedunaFeedbackButton
  projectId="YOUR_PROJECT_ID"
  target={{ type: "feature", id: "reports.export", label: "Export CSV" }}
>
  Give feedback on export
</FeedunaFeedbackButton>

For an AI answer, use the saved version ID your app displayed. Pass a new version ID when you regenerate the answer. If you can reopen a saved version, set target.path to that route behind your app’s access controls.

Attach the displayed answer version
import { FeedunaFeedbackButton } from "@/components/feeduna-feedback-button";

<FeedunaFeedbackButton
  projectId="YOUR_PROJECT_ID"
  target={{
    type: "data_result", collection: "ai.answers",
    id: displayedAnswerVersionId, label: "AI answer",
  }}
>
  Report this answer
</FeedunaFeedbackButton>

For a configured AI answer example, open App setup with the answer example or open the example in v0 .

Check the first report

  1. Open the page where you added the button. To try it locally, register your dev origin, including its port.
  2. Click the button and check the attached feature or answer reference. Confirm the connection with Check widget on your site in App setup.
  3. When collection is enabled, send a test report. Open it in Feeduna, check the reference, then review the issue before sending it to Linear.

If the button can’t connect, check the exact origin and widget settings.