rd-feedback-form
v1.0.10
Published
This repo contains two implementations of a feedback form.
Downloads
15
Readme
rd-feedback-from
Repo:
This repo contains two implementations of a feedback form.
feedback-form-web-component is a HTML web component that wraps the form in a custom element 'feedback-form'.
FeedbackFormComponent is a React component.
Usage explanations below.
Package:
Contains a react component consisting of a button that opens a dialog/modal containing the feedback form.
Install rd-feedback-form via 'npm i rd-feedback-form'.
Import the component via import { FeedbackFormComponent } from 'rd-feedback-form';
Use the component as pass a feedbackUrl (: string)
Script:
Contains a web component, with shadow dom attached to which elements are appended, consisting of a button that opens a dialog/modal containing the feedback form.
Imported to the application via
It is important the the id matches the on provided above, you must provide the submission url.
Use the component by adding the tag