

Every state


default


hover


focus


open


filled


sending


error


sent


no-email
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| prompt | string | null | "Something wrong on this page?" | The line before the opener. Null or left out: the opener alone. |
| openLabel | string | "Report a problem" | The opener's text. |
| title | string | "Report a problem with this page" | The form's title. |
| reasons | FeedbackReportProblemReason[] | [ { value: "wrong", label: "Something is wrong or out of date" }, { value: "broken", label: "A link or button doesn't… | What went wrong, as radio options. |
| askEmail | boolean | true | Ask for an email for a reply. False: no email field. |
| page | string | "/help/moving-house" | Sent along with the report, e.g. the page's path. |
| maxLength | number | 800 | Max length. |
| open | boolean | false | Draw the form open from the start. |
| status | "idle" | "sent" | "idle" | "sent" draws the thank-you state. |
| onSubmit | (value: FeedbackReportProblemValue) => void | Promise<void> | () => new Promise((done) => setTimeout(done, 1200)) | Called with the report; return a promise to keep "Sending…" until it is stored, reject it to show the error. |
| labels | FeedbackReportProblemLabels | { reasons: "What went wrong?", details: "Tell us a bit more", detailsPlaceholder: "Which part, and what you expected … | Labels. |
| className | string | – | Extra classes on the outer element. |
More feedback widgets
All 4feedback-widget-04 is in UI ProGet UI Pro, €199


