Feedback widget
A small widget to rate and comment from any page.
When to use
- Collecting quick product feedback.
When not to use
- You need a full survey.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/feedback-widget
Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
FeedbackWidget
5 props
PropTypeDefault
questionstring"Was this page helpful?"
scale"thumbs" | "faces""thumbs"
onSubmit *(feedback: { rating: FeedbackRating; comment: string; }) => FeedbackResult | Promise<FeedbackResult>—
thanksstring"Thanks, that helps us improve."
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status and radiogroup semantics, with aria-hidden, aria-label and aria-labelledby kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/feedback-widget.mdThe index of every part is at /llms.txt.