org.inovus.feedback-widget
v0.4.0
Published
Reusable in-app feedback widget with screenshot capture
Downloads
211
Readme
org.inovus/feedback-widget
Reusable in-app feedback widget (floating button + modal) with screenshot capture via @zumer/snapdom, for Totum satellite apps and other hosts.
Install
npm i org.inovus/feedback-widgetUsage
import { FeedbackWidget } from "org.inovus/feedback-widget";
import "org.inovus/feedback-widget/dist/styles.css";
export function App() {
return (
<FeedbackWidget
apiUrl="https://feedback.totum.ai/api/feedback"
environment="production"
commitSha="abc1234"
user={{ guid: "user-1", email: "[email protected]", name: "Jane User" }}
position="bottom-right"
accentColor="#00bbff"
onSubmit={(data) => console.log("Feedback created", data.id)}
onError={(error) => console.error("Feedback failed", error)}
/>
);
}