You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/customization/layout.mdx
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,16 @@ The table below lists all the available properties you can set:
25
25
|`button-position`|**Type**: `string`<br />**Default value**: `default`<br />**Available values:**`default`, `bottom-right`, `center-right`<br /><br />Position of the button.|
26
26
|`button-style`|**Type**: `string`<br />**Default value**: `default`<br />**Available values:**`default`, `dark`, `light`<br /><br />Style of the button.|
27
27
|`custom-font`|**Type**: `boolean`<br />**Default value**: `false`<br /><br />When set to `true`, the [Inter font](https://fonts.google.com/specimen/Inter) will not be loaded. Useful if your site already uses a different font, enabling a quicker load time.|
28
-
|`hide-email`|**Type**: `boolean`<br />**Default value**: `false`<br /><br />Whether to hide the email input. |
29
28
|`email-address`|**Type**: `string`<br /><br />Initial value for the email input field. |
29
+
|`hide-email`|**Type**: `boolean`<br />**Default value**: `false`<br /><br />Whether to hide the email input. |
30
30
|`hide-icon`|**Type**: `boolean`<br />**Default value**: `false`<br /><br />Whether to hide the button icon.|
31
+
|`hide-mobile`|**Type**: `boolean`<br/>**Default value**: `false`<br /> <br /> When set to `true`, hides the feedback button on mobile devices.|
32
+
|`hide-privacy-policy`|**Type**: `boolean`<br />**Default value**: `true`<br /><br />Whether to hide the privacy policy checkbox. |
33
+
|`hide-ratings`|**Type**: `boolean`<br />**Default value**: `false` <br /><br /> Wether to hide the ratings input. |
31
34
|`hide-screenshot-button`|**Type**: `boolean`<br />**Default value**: `false`<br /><br />Whether to hide the screenshot button.|
|`hide-privacy-policy`|**Type**: `boolean`<br />**Default value**: `true`<br /><br />Whether to hide the privacy policy checkbox. |
34
-
|`privacy-policy-text`|**Type**: `boolean`<br />**Default value**: `I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.`<br /><br />Privacy policy text. |
35
36
|`rating`|**Type**: `number`<br />**Default value**: -1 (neutral) <br /><br /> Rating selected by default. **Available values:**`stars` mode: 1...5. `thumbs` mode: `0` dislike and `1` like. `-1` means neutral in both modes. |
36
-
|`hide-ratings`|**Type**: `boolean`<br />**Default value**: `false` <br /><br /> Wether to hide the ratings input. |
|`hide-mobile`|**Type**: `boolean`<br/>**Default value**: `false`<br /> <br /> When set to `true`, hides the feedback button on mobile devices.|
39
38
|`sessionId`|**Type**: `string`<br />**Default value**: Autogenerated <br /><br /> 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. |
40
39
|`submit`|**Type**: `boolean`<br />**Default**: `false`<br /><br />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. |
|`email-placeholder`|**Type**: `string`<br />**Default value**: `Email address (optional)`<br />Placeholder text for the email input field.<br /><br /> |
30
29
|`error-message`|**Type**: `string`<br />**Default value**: `Please try again later."`<br />Message displayed when there's an error submitting feedback.<br /><br />|
31
30
|`modal-title-error-4-0-3`|**Type**: `string`<br />**Default value**: `The request URL does not match the one defined in PushFeedback for this project."`<br />Message displayed when there's a 403 error submitting feedback.<br /><br />|
32
31
|`modal-title-error-4-0-4`|**Type**: `string`<br />**Default value**: `We could not find the provided project id in PushFeedback.`<br />Message displayed when there's a 404 error submitting feedback.<br /><br />|
32
+
|`email-placeholder`|**Type**: `string`<br />**Default value**: `Email address (optional)`<br />Placeholder text for the email input field.<br /><br /> |
33
+
|`footer-text`|**Type**: `string`<br />**Default**: `""`<br /><br />Optional footer text displayed after "Powered by Pushfeedback.com". |
33
34
|`message-placeholder`|**Type**: `string`<br />**Default value**: `Comments`<br />Placeholder for the feedback message input.<br /><br />|
34
35
|`modal-title`|**Type**: `string`<br />**Default value**: `Share your feedback`<br />Title of the feedback modal.<br /><br /> |
35
36
|`modal-title-error`|**Type**: `string`<br />**Default value**: `Oops!`<br />Title displayed when there's an error submitting feedback.<br /><br />|
36
37
|`modal-title-success`|**Type**: `string`<br />**Default value**: `Thanks for your feedback!`<br />Title displayed upon successful feedback submission.<br /><br />|
38
+
|`privacy-policy-text`|**Type**: `boolean`<br />**Default value**: `I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.`<br /><br />Privacy policy text. |
39
+
|`rating-placeholder`|**Type**: `string`<br />**Default value**: `Was this page helpful?`<br />Heading for the feedback rating feature (thumbs).<br /><br />|
40
+
|`rating-stars-placeholder`|**Type**: `string`<br />**Default value**: `How would you rate this page`<br />Heading for the feedback rating feature (stars).<br /><br />|
37
41
|`screenshot-button-text`|**Type**: `string`<br />**Default value**: `Take a Screenshot`<br />Tooltip text for the screenshot button.<br /><br /> |
38
42
|`screenshot-topbar-text`|**Type**: `string`<br />**Default value**: `SELECT AN ELEMENT ON THE PAGE`<br />Instructional text when taking a screenshot.<br /><br />|
39
43
|`send-button-text`|**Type**: `string`<br />**Default value**: `Send`<br />Text for the button that submits feedback.<br /><br /> |
40
-
|`rating-placeholder`|**Type**: `string`<br />**Default value**: `Was this page helpful?`<br />Heading for the feedback rating feature (thumbs).<br /><br />|
41
-
|`rating-stars-placeholder`|**Type**: `string`<br />**Default value**: `How would you rate this page`<br />Heading for the feedback rating feature (stars).<br /><br />|
42
-
|`footer-text`|**Type**: `string`<br />**Default**: `""`<br /><br />Optional footer text displayed after "Powered by Pushfeedback.com". |
0 commit comments