Feedback face (Pro)
ProIncluded in $99A rating whose drawn face goes from grump to grin.
On this page
ProDrag the slider and the face goes from grump to grin, tilting with your speed while the label rolls; send it and it winks.
Drag the slider and a drawn face goes from grump to grin: the lids lift, the brows arch, the mouth opens, the cheeks warm and the face itself warms in colour, tilting with how fast you drag and bobbing as the label rolls to the next word. It blinks now and then. Send it and the face winks and the words thank you. Good for rating an agent's run or an answer.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { FeedbackFace } from "@/components/ui/chatcn/pro/feedback-face"
<FeedbackFace title="How did the agent do?" onSubmit={(rating) => rate(run.id, rating)} />Props
| Prop | Type | Notes |
|---|---|---|
value / defaultValue / onValueChange | number | 0 to 4 |
labels | string[5] | Worst to best |
title / context | ReactNode | |
thanks | { title, label } | Once sent |
submitted / onSubmit |
Keyboard
| Key | Action |
|---|---|
Arrow keys | One step worse or better |
Accessibility
- A slider with each label as its value text; the label line is announced.
Motion
- The face eases to each value; tilt and bob ride springs. Reduced motion: the face changes without tilting or blinking.