@centyapp/react-survey-widget
v0.0.8
Published
A React component for embedding a survey widget in your application.
Readme
📊 Survey Widget
Easily embed surveys in your React app with one line of code.
Lightweight, customizable, and programmatically controllable.
📦 Installation
pnpm add @centyapp/react-survey-widget
# or
npm install @centyapp/react-survey-widget
# or
yarn add @centyapp/react-survey-widget⚡ Quick Start
- Add the widget to your app
import { SurveyWidget } from "@centyapp/react-survey-widget";
export default function App() {
return (
<div>
<h1>My App</h1>
<SurveyWidget />
</div>
);
}- Trigger a survey on your demand
import { surveyWidget } from "@centyapp/react-survey-widget";
await surveyWidget.show("survey-id");