blip-feedback-footer
v0.0.91
Published
A footer component that allows users to leave feedback in blip extensions
Downloads
47
Readme
Blip Feedback Footer
A footer component that allows users to leave feedback in blip extensions
Installation
To install this package using npm
, run:
npm i blip-feedback-footer
Usage
You can call the component and pass the props, like the following example:
// App.tsx
// ...
import { FeedbackFooter } from 'blip-feedback-footer';
// Optional
import { useTranslation } from 'react-i18next';
const App = () => {
const { i18n } = useTranslation('notification');
return (
<StrictMode>
<Routes />
<FeedbackFooter
// This prop accepts "pt", "en" or "es"
language={i18n.language}
onSubmit={(values) => {
// Submission logic
}}
/>
</StrictMode>
);
};
export default App;