React & Material-UI based user suggestions/feedback/complaints dialog box with screenshot.
react-suggestion-box is available as an npm package.
// with npm
npm install --save react-suggestion-box
// with yarn
yarn add react-suggestion-box
import ReactSuggestionBox from 'react-suggestion-box';
....
<ReactSuggestionBox onSubmit={onSubmit} />
Name | Type | Default | Description |
---|---|---|---|
containerClassName | string | Component DOM container class | |
buttonTooltipText | string | "Suggestion" | Suggestion Button Tooltip Text |
mainButtonLabel | string | "Suggestion" | Suggestion Button Label |
title | string | "Send Suggestion" | Dialog title |
descriptionPlaceholder | string | "Describe your issues or share your ideas" | Dialog description field placeholder |
cancelButtonLabel | string | "Cancel" | Dialog Cancel button label |
submitButtonLabel | string | "Send" | Dialog Submit button label |
onSubmit | func | Dialog onSubmit handler (Mandatory) | |
icon | node | "Suggestion" from material | Icon |