Feedback Modal

A simple but elegant modal to get user feedback/suggestions.

Examples

Implementation of feedback modal

Implementation of feedback modal with custom styles

You can customize the content of the feedback modal by your own styles.

Click me in Light mode

Installation

npx shadcn@latest add "https://aetherui.in/c/feedback-modal.json"

Component Props

You can customize the content of the feedback modal by passing the following props to the component.

Default Feedback Modal Props

PropTypeDefaultDescription
customIdstringA unique identifier for the feedback modal.
titlestring (Optional)FeedbackTitle to be displayed in the feedback modal.
classNamestringAdditional class names to be applied to the feedback modal.
callbackfunction (Optional)Callback function to be called when the submit button is clicked.

Feedback Modal Props

PropTypeDefaultDescription
customIdstringA unique identifier for the feedback modal.
titlestring (Optional)FeedbackTitle to be displayed in the feedback modal.
classNamestringAdditional class names to be applied to the feedback modal.
callbackfunction (Optional)Callback function to be called when the submit button is clicked.
childrenReactNode (Optional)Content to be displayed inside the feedback modal.
...propsanyAdditional props to be passed to the feedback modal.

Feedback Modal Content Props

PropTypeDefaultDescription
textClassNamestringAdditional class names to be applied to the text area.
classNamestringAdditional class names to be applied to the feedback modal content.
childrenReactNode (Optional)Content to be displayed inside the feedback modal content.
...propsanyAdditional props to be passed to the feedback modal content.

Credits

Credit for this component goes to Emil Kowalski for the original idea and implementation.