@apitwist/react-feedback-client

1.2.7 • Public • Published

React-Feedback-Client

You can define your component right or left bottom of the page

image

A modal will be shown after you clicked feedback button

image

If you will use select, it will be shown conditionally when selected content

image

Installation

npm i @apitwist/react-feedback-client

Usage

You can describe your headers, labels, placeholders, messages

import { Feedback } from "@apitwist/react-feedback-client"

function App() {

// If you will use select options describe your array by id and name and pass as props to Feedback component,

    let selectArray = [
        { id: 1, name: "name 1" },
        { id: 2, name: "name 2" },
        { id: 3, name: "name 3" },
        { id: 4, name: "name 4" }
    ];
    return (
        <div className="App">
            <Feedback
                selectBarArray={selectArray}
                isDark={false}
                serviceUrl=""
                token=""
                showText={true}
            />
        </div>
    );
}

export default App;

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @apitwist/react-feedback-client

Weekly Downloads

56

Version

1.2.7

License

none

Unpacked Size

56.2 kB

Total Files

17

Last publish

Collaborators

  • onurbilenlacin
  • apitwist-girift