Skip to content

GRP-17/feedback-component

Repository files navigation

feedback-component

Travis npm package Coveralls

This is a feedback form React component for the Feedback Analysis project.

Preview

Live demo

Install

$ npm install feedback-component

Usage

<FeedbackForm
  dashboardId="d8dbc176-8ba0-41a7-a777-3734af30f8ca" /* the dashboard ID, required */
  textMaxLength={5000} /* The max length of text, default: 5000 */
  textPlaceholder="Details..." /* The placeholder for the text input, default: "Details..." */
  defaultRating={5} /* The default rating, default: 5 */
  loadingHint="Loading..." /* The loading hint, default: "Loading..." */
/>

Related

Dependency Used

Dependency Version Description Usage
antd ^3.16.2 An enterprise-class UI design language and React-based implementation with a set of high-quality React components Used to style most of appearance of the app.
axios ^0.18.0 Promise based HTTP client for the browser and node.js As a convenient tool to make requests to backend.
babel-plugin-import ^1.11.0 A babel plugin for importing components on demand. Used to import antd components on demand so as to reduce the size of the final built app.
moment ^2.24.0 Parse, validate, manipulate, and display dates. Used to parse the date object / timestamp sent from backend as formatted date string to be shown.
react ^16.8.1 A JavaScript library for building user interfaces. A base framework language to build our app.
react-dom ^16.8.1 This package provides DOM-specific methods that can be used at the top level of app. As a necessary peer dependency with react.
nwb 0.23.x A toolkit for React, Preact, Inferno & vanilla JSapps, React libraries and other npm modules for the web, with no configuration. Used to create the node module and publish it to NPM.
nwb-less ^0.7.1 Less plugin for nwb. Plugin enabling a Less loading pipeline for .less files in nwb using less-loader.
serve ^11.0.0 Static file serving and directory listing. Used to serve the app on a server like Heroku.

About

A simulation of the feedback user frontend with feedback components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published