mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-12 01:29:42 -06:00
* made modal component responsive * added tab switch * added mobile preview mode for surveys * did some refactors * did some refactors * added type defs * ran pnpm format * removed an unused comment * fixed variable name typo * fixed UI bugs and added mobile mockup to link surveys * restored changes from fix long description PR * fixed scroll to top issue and toggle hide bug * fixed minor animation bug * fixed placement issue * re-embed restart button, make phone preview more responsive --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
Formbricks Browser JS Library
Please see Formbricks Docs. Specifically, Quickstart/Implementation details.
What is Formbricks
Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out formbricks.com.
How to use this library
- Install the Formbricks package inside your project using npm:
npm install -s @formbricks/js
- Import Formbricks and initialize the widget in your main component (e.g., App.tsx or App.js):
import formbricks from "@formbricks/js";
if (typeof window !== "undefined") {
formbricks.init({
environmentId: "your-environment-id",
apiHost: "https://app.formbricks.com",
});
}
Replace your-environment-id with your actual environment ID. You can find your environment ID in the Setup Checklist in the Formbricks settings.
For more detailed guides for different frameworks, check out our Next.js and Vue.js guides.