Support dialog and feedback popover components for user communication
Our application comes with two components that allow users to contact you.
This component displays a modal with a form to contact support.
<ContactSupportDialog />
By default, a button with the text "Contact support" is displayed.
You can customize the button or trigger area by passing child content:
<ContactSupportDialog>
<button>Need help?</button>
</ContactSupportDialog>
NEXT_PUBLIC_EMAIL_CONTACT environment variableThis component displays a button that opens a popover allowing users to quickly give feedback on the application.
<ContactFeedbackPopover />
By default, a button with the text "Feedback" is displayed.
You can customize the button or trigger area by passing child content:
<ContactFeedbackPopover>
<button>Give us your feedback</button>
</ContactFeedbackPopover>
ContactSupportDialog is useful when you want to allow users to report issues or ask questions. It is already used several times in error pages to allow users to quickly report a problem.
ContactFeedbackPopover is ideal for quickly collecting general feedback on the user experience. It's less intrusive than a full modal and allows quick rating with emojis.