feedbacky-react-component
v0.1.8
Published
Feedbacky is used for integrating a feedback system for client-side codebase.
Downloads
20
Readme
Feedbacky
Feedbacky is used for integrating a feedback system for client-side codebase.
Getting Started
Use the package manager 'npm' to install Feedbacky.
npm i feedbacky-react-component
Usage
import { Feedbacky } from 'feedbacky-react-component';
function Example() {
return (
<div className="Example">
<Feedbacky />
</div>
)
Arguments
| Name | Description | Default Value | | ---------- | :---------: | -------------------------------------------------: | | customerId | string | 'customer-1' | | url | string | 'http://localhost:8080/feedbacky-api/sendFeedback' | | iconColor | string | 'black' | | width | string | '24px' | | height | string | '24px' | | title | string | 'Send Your Feedback' |
Icon Colors
You can choose a color for icon from the examples below.
- black
- blue
- gray
- green
- orange
- purple
- red
- white
- yellow
Request Attributes
{
method: 'POST',
credentials: 'include',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Access-Control-Allow-Credentials': true
},
body: {
'customerId': 'customer-1',
'message': 'example feedback text'
}
}