react-suggestion-box
v2.0.2
Published
Material-ui based react user suggestions/feedback/complaints dialog box with screenshot
Downloads
32
Maintainers
Readme
react-suggestion-box
React & Material-UI based user suggestions/feedback/complaints dialog box with screenshot.
Installation
react-suggestion-box is available as an npm package.
// with npm
npm install --save react-suggestion-box
// with yarn
yarn add react-suggestion-box
Usage
import ReactSuggestionBox from 'react-suggestion-box';
....
<ReactSuggestionBox onSubmit={onSubmit} />
Props
| 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 |