This package has been archived. Use this one instead: https://github.com/feedbackfarm/widget/tree/main/packages/react
Feedback Farm widget
Require a Feedback Farm account
Embed a small widget into your web application to start getting user feedback.
-
Create a project on the feedback.farm platform and then grab the project id.
-
npm install @feedbackfarm/react
-
Insert the following snippet with your
projectId
// index.jsx
import FeedbackFarm from "@feedbackfarm/react";
<FeedbackFarm projectId="replace_with_your_project_id">
<span>
Give Feedback
</span>
</FeedbackFarm>
Parameters | Type | Description | Required |
---|---|---|---|
projectId |
string | Project identifier available on feedback.farm platform | ✅ |
colors |
Colors | Customize widget colors (see below) | |
identifier |
string | User identifier (email, id, ...) | |
identifierMode |
IdentifierMode | Ask user email (see below) | |
onClose |
function | Called when the widget is closed | |
onFeedbackAdded |
function | Called when a feedback has been added | |
onOpen |
function | Called when the widget is being open | |
theme |
light / optional |
Use widget color for light or theme mode | |
placement |
Placement | Modal placement (see below) | |
strings |
Strings | Widget translation (see below) |
You can overwrite any of the following colors:
{
buttonColor: string,
buttonColor: string;
buttonDisabledColor: string;
buttonTextColor: string;
buttonTextDisabledColor: string;
modalBackgroundColor: string;
textAreaBackgroundColor: string;
textAreaBorderColor: string;
textAreaColor: string;
textColor: string;
typeBackgroundColor: string;
}
required = user is required to provide an email
optional = user is not optionally ask to provide an email
Full documentation
- top
- bottom
- right
- left
- auto
- auto-start
- auto-end
- top-start
- top-end
- bottom-start
- bottom-end"
- right-start"
- right-end"
- left-start"
- left-end
{
askTitle?: string;
send?: string;
conclusionTitle?: string;
conclusionSubtitle?: string;
anotherFeedback?: string;
error?: string;
userIdentificationInputPlaceholder?: string;
textareaPlaceholders?: {
BUG?: string;
FEATURE?: string;
OTHER?: string;
DEFAULT?: string;
};
feedbackTypes?: {
FEATURE?: string;
BUG?: string;
OTHER?: string;
};
poweredBy?: string;
}