- Drop-in components: Pre-built UI with many customizable options which require minimal effort to build.
- Headless implementation: For more advanced use cases where you want to build UI/UX from scratch.
Integration
Integrate using script tag
This integration is used in Vanillajs, Django, Laravel, ruby etc where npm is not used.Integrate as npm package
This integration is used in framework based applications like angular, vuejs etc.suprsend-feed, specify height for the container for infinite scroll to work properly.
Removing instance
Components will be removed automatically if you navigate away from the page (on unmounting). If you want to remove them manually, you can use below methods.Updating configuration dynamically
Accessing other instance methods
SDK internally callsnew SuprSend() when you call initSuprSend() then you can access instance using window.suprsend.client. This instance has methods like preferences, webpush, event and user updates.
Config options
To customise SuprSend components you can pass config object.
For further component specific customisations please refer to the docs.