awesome-feedbacky
v1.0.3
Published
## Contents
Downloads
1
Readme
Feedbacky
Contents
- What Is Feedbacky?
- Demo
- Usages
- Usage Via NPM
- Usage Via CDN
- Prop Types Table
- How To Get A Google Sheet Id?
- Additional Notes
Feedbacky: A Feedback is a product integrable with web applications.
What Is Feedbacky?
- Feedbacky is a product developed to gather comments and feedbacks of customers about their user experiences. It is integrable with web applications. You can follow the steps to easily use it.
Demo
Feedbacky Demo https://feedbacky-demo.netlify.app/
A button with icon and modal exists at demo. It can be integrated to other projects following the steps below. The development of background at homepage or wherever Feedbacky is used up to the user.
Usages
Feedbacky can be integrated to web projects through 2 different ways.
- By NPM Package
- By CDN
Usage Via NPM
- You can follow to steps to install the NPM package, import the
Feedbacky
component and use it.
Install
npm i awesome-feedbacky
Import Component
import { Feedbacky } from "awesome-feedbacky";
Use The Component
export const App = () => {
return (
<>
<Feedbacky
googleSheetId="95a57d16-dcc3-4f57-8e24-dfbba8e9e786"
modalSuccessTitle="Thanks for sharing your feedback!"
sendButtonText="Send Feedback"
nameInputPlaceholder="Name"
surnameInputPlaceholder="Surname"
feedbackInputPlaceholder="Feedback?"
modalSuccessIconSize={100}
modalSuccessIconColor="green"
feedbackyButtonIconSize={45}
modalTitle="Share what you think with us..."
/>
</>
);
};
Important Note:
The props exceptgoogleSheetId
are optional. If they are not sent, the default values will be used.
Usage Via CDN
Feedbacky can be integrated also by CDN with
script
tags.Go to main
HTML
file.(index.html)
feedbacky-container
- Add a
div
element with the ID offeedbacky-container
.
<div id="feedbacky-container"></div>
CDN
- Add
CDN
usingscript
tag.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/index.js"></script>
Add New Script Tag For Props
<script>
feedbacky.run({
googleSheetId: "95a57d16-dcc3-4f57-8e24-dfbba8e9e786",
modalSuccessTitle: "Thanks for sharing your feedback!",
sendButtonText: "Send Feedback",
nameInputPlaceholder: "Your Name",
surnameInputPlaceholder: "Your Surname",
feedbackInputPlaceholder: "Your Feedback",
modalSuccessIconSize: 100,
modalSuccessIconColor: "green",
feedbackyButtonIconSize: 45,
modalTitle: "Share what you think with us...",
});
</script>
Important Note:
Remember that the props exceptgoogleSheetId
are optional. If they are not sent, the default values will be used.
Prop Types Table
| Prop Name | Prop Type | Value (E.G.) |
| :------------------------- | :-------- | :------------------------------------- |
| googleSheetId
| string
| "95a57d16-dcc3-4f57-8e24-dfbba8e9e786" |
| modalSuccessTitle
| string
| "Thanks for sharing your feedback!" |
| sendButtonText
| string
| "Send Feedback" |
| nameInputPlaceholder
| string
| "Your Name..." |
| surnameInputPlaceholder
| string
| "Your Surname..." |
| feedbackInputPlaceholder
| string
| "Your Feedback..." |
| modalSuccessIconSize
| number
| 100 |
| modalSuccessIconColor
| string
| green |
| feedbackyButtonIconSize
| number
| 45 |
| modalTitle
| string
| "Share what you think with us..." |
How To Get A Google Sheet Id?
The data is saved in a Google Sheet file for Feedbacky App. You need to send a value for
googleSheetId
prop to use it.Go to Google Sheets to create a blank sheet or use an existing one. https://www.google.com/sheets/about/
Open an online table and rename it.
Change settings for your share options. (Private or Public etc.)
Copy your link for your Google Sheet table.
Go to
sheet.best
.Sheet.best turns spreadsheets into REST APIs. Connect a gsheet or a csv to anything.
Sign In with your Google account.
Click on "Add your first connection to start".
Connection Name
: FeedbackData,Connection URL
: Paste here your Google Sheet File link,Click connect (connection created successfully).
Go to the admin panel for sheet.best. https://sheet.best/admin
Go to details for your connection.
(FeedbackData)
Get Connection URL: E.g:
https://sheet.best/api/sheets/e4dbe27a-31e1-4578-a692-9b85b15dc39e
googleSheetId
:e4dbe27a-31e1-4578-a692-9b85b15dc39e
Use this URL for the post request API.
(E.g: axios.post())
Use this ID as your
googleSheetId
value.
Additional Notes
Notes: Here is the additional part for the development notes.
- I used
console.log()
atmain.tsx
to add thefeedbacky.run()
method to the bundle.