Skip to content
GetUrUI

Feedback widgets

3 variantsNewPro
.md

NPS survey, drawn face rating and bug report widgets — a follow-up that adapts to the score, a face that morphs as you hover and a screenshot capture with a shutter flash.

feedbacknpssurveyratingemojibug reportformsupport

NPS survey

nps.tsx

A 0–10 scale that fills up to your score, a follow-up question that changes for detractors, passives and promoters, and a thank-you crossfade.

$npx shadcn@latest add @geturui-pro/feedback-widgets-nps
PropTypeDefaultDescription
product / questionstring—Question defaults to “How likely are you to recommend {product}…”.
followUps{ detractor; passive; promoter }—Follow-up prompt per band.
defaultScorenumber | nullnullPreselected score.
onSubmit({ score, comment }) => void—Submit handler.
onDismiss() => void—Close button handler.

Face rating

face-rating.tsx

Five drawn faces and a large face whose mouth and brows morph to the hovered rating, then topic chips, a comment and send.

$npx shadcn@latest add @geturui-pro/feedback-widgets-face-rating
PropTypeDefaultDescription
titlestring—Question.
labels[string × 5]["Terrible", …, "Great"]Word for each face.
topicsstring[]—Optional chips shown after rating.
defaultRatingnumber | nullnull1–5.
onSubmit({ rating, topics, comment }) => void—Submit handler.

Bug report

bug-report.tsx

Category segments, summary and details fields, a simulated page capture with shutter flash and thumbnail, and a send flow that returns a ticket id.

$npx shadcn@latest add @geturui-pro/feedback-widgets-bug-report
PropTypeDefaultDescription
pagestring—Path the report is about.
defaultCategory"bug" | "visual" | "performance" | "other""bug"Initial category.
defaultSummary / defaultDetailsstring—Prefilled fields.
screenshotName / ticketIdstring—Labels for the simulated capture and the confirmation.
onSubmit(report) => void—{ category, summary, details, screenshot, logs }.

Install the whole set

Installs every feedback widgets variant at once. Each section above has its own command for a single variant.

Pro installs use your private registry token. Add the @geturui-pro registry once — setup guide. The command works after you get Pro.

$npx shadcn@latest add @geturui-pro/feedback-widgets

Accessibility

  • Scores, faces and categories are radiogroups with roving focus and arrow keys.
  • Every field has a visible or screen-reader label; the follow-up question is the textarea's label.
  • Confirmation states use role=status; reduced motion swaps the face morph and stamp for fades.

Related