Rating Feedback
A "Was this helpful?" emoji rating widget with keyboard radiogroup, comment box and thank-you state.
Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
RatingFeedbackProps
Also accepts all props of Omit<React.ComponentProps<"div">, "onSubmit">
| Prop | Type | Default | Description |
|---|---|---|---|
| question | string | "Was this helpful?" | — |
| onSubmit | (feedback: { rating: number; comment: string }) => void | — | Called when the user presses Send. `rating` is 1-5. |
Install
$ npx shadcn@latest add https://chromotion.dev/r/rating-feedback.json