Skip to content

Feedback Widget

Drop-in React component that adds a floating feedback button to your app. Users can submit bugs, feature requests, and general feedback without leaving your site.

Terminal window
npm install @saas-maker/feedback-widget
import { FeedbackWidget } from '@saas-maker/feedback-widget';
function App() {
return (
<FeedbackWidget
projectId="pk_your_api_key"
apiBaseUrl="https://saasmaker-api.sarthakagrawal927.workers.dev"
/>
);
}

The widget renders a floating trigger button. Clicking it opens a modal where users can submit feedback with a title, description, type selector, and optional screenshot upload.

PropTypeDefaultDescription
projectIdstringYour project API key (required)
apiBaseUrlstringAPI base URL (required)
userEmailstringPre-fill the submitter email
userNamestringPre-fill the submitter name
typesFeedbackType[]['bug', 'feature', 'feedback']Which feedback types to show
position'bottom-right' | 'bottom-left''bottom-right'Trigger button position
theme'light' | 'dark' | 'auto''auto'Color theme
accentColorstring'#1464ff'Brand accent color
triggerTextstring'Feedback'Text on the trigger button

If your users are already signed in, pass their email and name to skip those fields in the form:

<FeedbackWidget
projectId="pk_your_api_key"
apiBaseUrl="https://saasmaker-api.sarthakagrawal927.workers.dev"
userEmail={currentUser.email}
userName={currentUser.name}
/>

The widget supports light, dark, and auto themes. The auto theme follows the user’s system preference. You can also set a custom accent color:

<FeedbackWidget
projectId="pk_your_api_key"
apiBaseUrl="https://saasmaker-api.sarthakagrawal927.workers.dev"
theme="dark"
accentColor="#ff6b00"
/>