About
A 0-10 Net Promoter Score survey widget with selectable score buttons, tone-labelled endpoints, and a submit button that confirms the filed score.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds NPS Survey to your project and fits it to your theme.
Code
How NPS Survey is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { NpsSurvey } from "@/components/ui/nps-survey";
export default function NpsSurveyDemo() {
return (
<div className="flex min-h-[400px] w-full items-center justify-center bg-background p-8 text-foreground">
<NpsSurvey
onScore={(score) => console.log("NPS score submitted:", score)}
/>
</div>
);
}
















