Learn about general FeedbackFlow Widget configuration properties.
The widget will always have the .feedbackflow-widget
class. You can use this class to style the widget. When used as a
floating action button, the widget will also have the .feedbackflow-action-widget
class.
The FeedbackFlow widget gets its configuration from the data-
attributes in the script tag that loads the widget. You
can customize the widget by setting the following attributes.
Attribute | Description | Default value |
---|---|---|
data-id | The project ID of the FeedbackFlow project you want to collect feedback for. | - |
data-auto-inject | Automatically inject the widget into the page. If set to | true |
If you set data-auto-inject
to true
, the floating action widget is automatically injected into your page. If you set
it to false
, you need to do it manually.
The FeedbackFlow widget exposes a global FeedbackFlow
object that you can use to manually inject the widget into the
page.
The returned widget
object has the following methods:
remove()
: removes the widget from the DOM.The widget offers two customization options:
The widget uses CSS variables to define its appearance. You can override the default values by setting the variables in your application's CSS. The values of the variables are in HSL format.
These are the default values:
If you want to customize the widget further, you can add custom CSS to your application.
An example of changing the font family:
The FeedbackFlow widget is now configured. Read more about advanced widget use cases to learn how to insert the widget into a specific element on the page.
We use cookies to ensure you get the best experience on our website. No tracking or personal data is collected.