Response Actions
The row under an AI answer: copy, regenerate, thumbs up and down. Each one answers with a small spring, and a thumbs-down asks why in a single tap.
Needs: None.
Customize
size
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| copyText | string | – | Put on the clipboard by the copy button. Leave out to copy it yourself in onCopy. |
| onCopy | (text: string) => void | – | Called when copy is pressed. |
| onRegenerate | () => void | – | Called when regenerate is pressed. |
| onFeedback | (kind: "up" | "down" | null, reasons: string[], text: string) => void | – | Called when a thumb is pressed or cleared (null), with no reasons, and again with the picked reasons and note when they're sent. |
| reasons | string[] | – | Offered after a thumbs-down. Defaults to ["Wrong", "Too long", "Not what I asked"]. |
| freeText | boolean | true | Adds an optional note field after the reasons. |
| size | "sm" | "md" | "lg" | "md" | Button size: 28, 32 or 38 px. |
| accent | string | "" | Colour of a chosen thumb, picked reasons and the send button. |
| className | string | – | Added to the root. |
| style | CSSProperties | – | Inline styles for the root. |