0.1.4 • Published 2 years ago

feedbacky-library v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Feedbacky: lightweight feedback collector

Feedbacky is a JS library for collecting visitor feedbacks across your web projects.

Feedbacky Banner

Installation

Script Tag

<script src="https://unpkg.com/feedbacky-library@0.1.4/dist/feedbacky.js"></script>

NPM Installation

npm install feedbacky-library

Usage

feedbacky.render({
  elementId: 'feedback-el-root',
  config: { projectId: 'PROJECT_ID_FROM_DASHBOARD_APP' },
});
import { render } from 'feedbacky-library';

function App() {
  useEffect(() => {
    render({
      elementId: 'feedbacky-el-root',
      config: {
        projectId: 'PROJECT_ID_FROM_DASHBOARD_APP',
        primaryColor: '#f3f779',
        textColor: 'blue',
        showEmail: true,
      },
    });
  }, []);

  return <h1>app</h1>;
}

Configuration

configdescriptiontyperequireddefault
elementIdhtml element id that modal feecbacky modal will renderstringtruenull
configprops used to customize feedbacky modalobjecttruenull
config.projectIdunique project id from feedbacky dashboard appstringtruenull
config.primaryColorcolor of the buttons on feedbacky modalstringfalse#764abc
config.textColortext color of the buttons on feedbacky modalstringfalse#ffffff
config.postSubmitMessagemessage that will be visible on submit button after form is submitted (hex, rgba, etc.)stringfalse"Thanks four your feedback!"
config.submitButtonMessageform submit button text color (hex, rgba, etc.)stringfalse"Send Feedback!"
config.showEmailwhether email field is visiblebooleanfalsefalse
config.defaultEmaildefault value of email fieldstringfalse""
config.emailRequiredwhether email field is requiredbooleanfalsefalse
config.zIndexz-index of modal containerstringfalse999999

Example

feedbacky.render({
  elementId: 'feedback-el-root',
  config: {
    projectId: 'PROJECT_ID_FROM_DASHBOARD_APP',
    primaryColor: '#000000',
    textColor: '#ffffff',
    showEmail: 'true',
    defaultEmail: 'user@user.com',
    emailRequired: 'true',
  },
});

Admin Dashboard

You have to create an account on admin dashboard to render feecbacky modal on your website. Feedbacks are directly posted to your created project on dashboard.

Feedbacky Dashboard Feedbacky Dashboard Feedbacky Dashboard

License

MIT

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago