

Every state


default


hover


focus


picked


picked-low


sending


sent


narrow
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "How would you rate this page?" | The question, read out as the group's name. |
| text | string | null | "Your answer helps us decide which help pages to rewrite first." | One line under the question. Null or left out: no line. |
| options | FeedbackPageRatingOption[] | [ { value: 1, label: "Very bad", icon: "angry" }, { value: 2, label: "Bad", icon: "frown" }, { value: 3, label: "Okay… | The five faces, worst first. |
| value | number | null | null | The face picked when the card first draws (e.g. from a saved answer). Null: none. |
| commentLabel | string | "Anything you'd like to add?" | Comment label. |
| optionalLabel | string | "Optional" | Optional label. |
| placeholder | string | "What you were looking for, what was unclear …" | Placeholder. |
| maxLength | number | 500 | Max length. |
| sendLabel | string | "Send rating" | Send label. |
| sendingLabel | string | "Sending…" | Sending label. |
| thanks | string | "Thanks for rating this page." | The thank-you line after sending. |
| thanksDetail | string | "You rated it “{label}”. We read every comment." | "{label}" becomes the word of the picked face. |
| page | string | "/help/meter-readings" | Sent along with the answer, e.g. the page's path. |
| status | "idle" | "sent" | "idle" | "sent" draws the thank-you state (e.g. after a reload). |
| onSubmit | (value: FeedbackPageRatingValue) => void | Promise<void> | () => new Promise((done) => setTimeout(done, 1200)) | Called with the answer; return a promise to keep "Sending…" until it is stored. |
| className | string | – | Extra classes on the outer element. |


