
Security News
AI Agent Submits PR to Matplotlib, Publishes Angry Blog Post After Rejection
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.
react-collect-feedback
Advanced tools
A react plugin to collect feedback easily from webpages. react-collect-feedback plugin has props through which the feedback collection can be customized to any extent.
React-Collect-Feedback is a highly customizable feedback widget component built with React. It allows easy collection of user feedback through ratings, emojis, or text inputs. The widget can be integrated into any React application, providing seamless feedback collection that can be adapted to fit your needs.
npm install react-collect-feedbackimport React from 'react';
import FeedbackWidget from 'react-collect-feedback';
function App() {
const handleFeedbackSubmit = (data) => {
console.log("Feedback submitted:", data);
};
const feedbackWidgetProps = {
template: "rating",
promptText: "How did we do?",
showThumb: false,
position: "bottom-right",
onSubmitFeedback: handleFeedbackSubmit,
feedbackTitle: "Tell us what you think",
closeAfter: 5000,
options: [
{ title: "What kind of feedback do you have?" },
{ icon: "👍", text: "I like something" },
{ icon: "👎", text: "I don't like something" },
{ icon: "💡", text: "I have an idea" }
],
captureUserInfo: { name: true, email: true, contact: true },
ratings: [
{ value: "Speed of website", mandatory: true },
{ value: "Content quality", mandatory: true },
{ value: "Ease of navigation", mandatory: false }
],
score: [
{ title: "How satisfied are you?", number: 5 },
{ title: "How likely are you to recommend us?", number: 10 }
]
};
return (
<div>
<FeedbackWidget {...feedbackWidgetProps} />
</div>
);
}
export default App;
template: Choose a template for feedback collection. Options includeproduct: For collecting product-related feedback.page: General page feedback.rating: Star ratings for specific feedback categories.score: Score-based feedback, e.g., 1 to 5 or 1 to 10.promptText: Text prompt for initiating the feedback collection (default is "How did we do?").showThumb: Show thumbs up/down for quick reactions. Default is false.position: Position of the feedback widget on the screen. Available positions:bottom-rightbottom-lefttop-righttop-leftonSubmitFeedback: Callback function that will receive the collected feedback data when the user submits it.feedbackTitle: Title text that appears at the top of the feedback popup (e.g., "Tell us what you think").closeAfter: Time in milliseconds after which the widget will close automatically after submission. Default is 5000.options: Array of objects defining feedback options (icons, text) for quick user feedback.captureUserInfo: Boolean values for capturing user information (name, email, contact).ratings: Array of objects for rating different aspects (value, mandatory status). Example:[
{ "value": "Speed of website", "mandatory": true },
{ "value": "Content quality", "mandatory": true }
]
score: Array of objects for collecting score-based feedback. Example:
json
Copy code
[
{ "title": "How satisfied are you?", "number": 5 },
{ "title": "How likely are you to recommend us?", "number": 10 }
]
If you want to contribute to this project, feel free to submit pull requests or open issues for suggestions and bug reports.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A React plugin to collect feedback easily from webpages. The react-collect-feedback plugin has props through which feedback collection can be customized extensively.
We found that react-collect-feedback demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.

Security News
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.