Atelier UI

Search components…

Search components…

Rating Feedback

A "Was this helpful?" emoji rating widget with keyboard radiogroup, comment box and thank-you state.

Edit in sandbox

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">

PropTypeDefaultDescription
questionstring"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

More like this