3.0.9 • Published 2 years ago

react-lib-feedbacky v3.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

feedbacky-react-component

Feedbacky is a react component library that can be used for collecting feedback from users as a text then sending it to database.

To Implement Feedbacky

npm i react-lib-feedbacky

To Import Feedbacky As Default

import {Feedbacky} from "react-lib-feedbacky";

export default function App() {
    const props = {
        applicationId: "TEST",
        fontColor: "#fff",
        formButtonText: "SEND",
        formButtonColor: "#f37919",
        formButtonTextColor: "#000000",
        modalBackgroundColor: "#ffffff",
        formTitle: "SEND YOUR FEEDBACK",
        responseTitle: "WE HAVE GOT YOUR FEEDBACK",
        responseTitleColor: "#1d851d",
        feedbackyApiUrl: "https://feedbacky-api-go.herokuapp.com/feedback",
    };

    return (
        <div className="App">
            <Feedbacky {...props} />
        </div>
    );
}

Documentation

Props*Description
applicationIdApplication ID or name where feedbacks come from
fontColorFont color for the form
formButtonTextSubmit form button text
formButtonColorSubmit form button color
formButtonTextColorSubmit form button text color
modalBackgroundColorModal background color
formTitleTitle for the requested message
responseTitleTitle for the response message
responseTitleColorColor for response title
feedbackyApiUrlApi Url for the feedbacky app

*all props are default as string.

Demo