react-suggestion-box

    2.0.2 • Public • Published

    react-suggestion-box

    React & Material-UI based user suggestions/feedback/complaints dialog box with screenshot.

    NPM

    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

    Screenshot

    alt text

    Install

    npm i react-suggestion-box

    DownloadsWeekly Downloads

    75

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    2.87 MB

    Total Files

    3

    Last publish

    Collaborators

    • snyaggarwal