Skip to content
Page rating, light
Light
Page rating, dark
Dark

Every state

  • Page rating, default, light
    Page rating, default, dark

    default

  • Page rating, hover, light
    Page rating, hover, dark

    hover

  • Page rating, focus, light
    Page rating, focus, dark

    focus

  • Page rating, picked, light
    Page rating, picked, dark

    picked

  • Page rating, picked-low, light
    Page rating, picked-low, dark

    picked-low

  • Page rating, sending, light
    Page rating, sending, dark

    sending

  • Page rating, sent, light
    Page rating, sent, dark

    sent

  • Page rating, narrow, light
    Page rating, narrow, dark

    narrow

Props

PropTypeDefaultWhat it does
titlestring"How would you rate this page?"The question, read out as the group's name.
textstring | null"Your answer helps us decide which help pages to rewrite first."One line under the question. Null or left out: no line.
optionsFeedbackPageRatingOption[][ { value: 1, label: "Very bad", icon: "angry" }, { value: 2, label: "Bad", icon: "frown" }, { value: 3, label: "Okay…The five faces, worst first.
valuenumber | nullnullThe face picked when the card first draws (e.g. from a saved answer). Null: none.
commentLabelstring"Anything you'd like to add?"Comment label.
optionalLabelstring"Optional"Optional label.
placeholderstring"What you were looking for, what was unclear …"Placeholder.
maxLengthnumber500Max length.
sendLabelstring"Send rating"Send label.
sendingLabelstring"Sending…"Sending label.
thanksstring"Thanks for rating this page."The thank-you line after sending.
thanksDetailstring"You rated it “{label}”. We read every comment.""{label}" becomes the word of the picked face.
pagestring"/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.
classNamestring–Extra classes on the outer element.

More feedback widgets

All 4

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans