Socket
Socket
Sign inDemoInstall

feedbacky-library

Package Overview
Dependencies
61
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    feedbacky-library

Feedbacky Library


Version published
Weekly downloads
16
increased by1500%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 17 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc