For the complete documentation index, see llms.txt
Skip to main content

Layout

The feedback widget accepts HTML attributes to control its position, style, rating mode, and visibility options.

Usage

To customize the properties, you need to set the appropriate attributes on the <feedback-button> element in your HTML. For example:

<feedback-button project="YOUR_PROJECT_ID" button-style="dark" hide-icon="true">Feedback</feedback-button>

Properties

The table below lists all the available properties you can set:

PropertyDescription
projectRequired
Type: string

The project ID.
api-keyType: string
Default value: ""

Required when the project has require a submit key enabled. Use a key scoped to feedback:submit only: see API key security.
button-positionType: string
Default value: default
Available values: default, bottom-right, bottom-left, top-right, top-left, center-right, center-left

Position of the button. Use center-right or center-left to display the button as a vertical tab attached to the edge of the screen.
button-styleType: string
Default value: default
Available values: default, dark, light

Style of the button.
click-outside-closeType: boolean
Default value: true

Whether clicking outside the feedback modal closes it. Any message typed by the user is kept, so an accidental click does not discard their input. Also applies to the screenshot editor, where clicking outside returns to the feedback form. See Accessibility.
custom-fontType: boolean
Default value: false

When set to true, the Inter font will not be loaded. Useful if your site already uses a different font, enabling a quicker load time.
email-addressType: string

Initial value for the email input field.
escape-closeType: boolean
Default value: true

Whether pressing Esc closes the feedback modal. Like clicking outside, any message typed by the user is kept. Also applies to the screenshot editor. Set to false if your site already binds Esc to something else. See Accessibility.
hide-emailType: boolean
Default value: false

Whether to hide the email input.
hide-iconType: boolean
Default value: false

Whether to hide the button icon.
hide-mobileType: boolean
Default value: false

When set to true, hides the feedback button on mobile devices.
hide-privacy-policyType: boolean
Default value: true

Whether to hide the privacy policy checkbox.
hide-ratingType: boolean
Default value: false

Wether to hide the ratings input.
hide-screenshot-buttonType: boolean
Default value: false

Whether to hide the screenshot button.
history-closeType: boolean
Default value: true

Whether pressing the browser back button while the feedback modal is open closes it instead of navigating away. Especially useful on mobile, where going back is the natural way to dismiss an overlay.
is-email-requiredType: boolean
Default value: false

When set to true, users must provide an email address to submit feedback. Tip: Remember to also update the email-placeholder property to remove "(optional)" from the text when using this option.
metadataType: string
Default value: ``

Any metadata to tag feedback submissions. This can be used to attach additional context or categorization information to the feedback.
modal-positionType: string
Default value: center
Available values: center, sidebar-right, sidebar-left, top-right, top-left, bottom-right, bottom-left, center-right, center-left

Position of the feedback modal.
ratingType: number
Default value: -1 (neutral)

Rating selected by default. Available values: stars mode: 1...5. thumbs mode: 0 dislike and 1 like. -1 means neutral in both modes.
rating-modeType: string
Default value: thumbs

Available values: thumbs, stars

Type of rating system.
recaptcha-textType: string
Default value: This form is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Policy</a> and <a href="https://policies.google.com/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a> apply.

Text displayed in the footer when reCAPTCHA is enabled. Supports a limited set of HTML tags (a, b, br, code, em, i, p, small, span, strong, u) and attributes (href, target, rel, title).
sessionIdType: string
Default value: Autogenerated

Identifies the current user session. By default, this value is autogenerated if not provided. You can override it to specify a custom session ID, which can be useful for tracking or linking specific sessions across different analytics tools.
submitType: boolean
Default: false

If set to true, submits feedback automatically without opening the modal, using the provided rating value. If not set, the default rating of 0 (negative feedback) is sent.
privacy-policy-textType: string
Default value: I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.

Privacy policy text.

Examples

Here you'll find practical examples to guide you in customizing the PushFeedback button for various use cases.

Change the button style

Create a floating button

Add the widget to any button

Like / dislike buttons

Change modal position

info

For an optimal viewing experience of this demo, select the 0.25x zoom level on CodePen.

Prefill email

Enable privacy policy

Enable stars rating