@apitwist/react-feedback-client
v1.2.7
Published
React feedback client package
Downloads
103
Readme
React-Feedback-Client
You can define your component right or left bottom of the page
A modal will be shown after you clicked feedback button
If you will use select, it will be shown conditionally when selected content
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;