Skip to content

FeedbackBar

Stable

Thumbs up and down buttons, with a short list of reasons after a thumbs down.

Also known as thumbs up down, rating, feedback, like dislike

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Interactive

No feedback sent.

Try thumbs down to see the reasons. The line below shows what was sent.

When to use it

A quick way to say whether a reply helped. A thumbs down asks why with one tap, and Skip keeps the reason optional.

Made of: Thumbs up · Thumbs down · Reasons and Skip · Thank-you message

Use it for

  • Under a finished assistant reply.
  • Collecting a reason when a reply was wrong, unhelpful or unsafe.

Not for

  • Copying or retrying a reply: use MessageActions.
  • A detailed written report or survey.

Do and avoid

Do. Two thumbs under one answer, and a reason when it was bad.
Rate your experience from 1 to 10 and write 200 words.
Avoid. A long survey after every answer makes people skip feedback.

Do

  • Show it after a reply is finished, next to the message actions.
  • Keep the thank-you short and plain.
  • Save the answer in onSubmit. The part only hands it to you.
  • Change resetKey when a new message arrives, so the bar starts fresh.

Avoid

  • Do not force a reason. Keep Skip so people can send just the rating.
  • Do not reuse one bar for several messages without a resetKey. It will not clear itself.
  • Do not use it for general surveys. It rates one reply.

On a phone

  • The thumb buttons stay 28px square on touch screens and have a 44px tap area.
  • After a thumbs down the reasons wrap onto new rows. Each keeps its size and has a 44px tap area on touch screens.
  • Nothing needs hover, and the thank-you line is shown beside the thumbs.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started