react-nps-input
A lightweight React component for gathering Net Promoter Score surveys. See demo.
Installation
$ npm install react-nps-input --save
Usage
const React = ;const NPSInput = ; const MyApp = React
Props
[Function] onSubmit
: function to call when the user clicked on a score[Function] onDismissed
: function to call when the user clicked to dismiss the form[String] service
(Optional): name of the service for the introduction message[Boolean] animated
(Optional): show animation for apparition (default istrue
)