This page as markdown: /feedback.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Feedback

Status: stable

A compact feedback popover. Composes Popover + Textarea + Button + Toggle into a rating row plus a message field; submitting reports the rating + message, shows a brief drawn-check thanks, and closes the popover.

Keywords: feedback, sentiment, rating, prompt

Usage

Use Feedback to collect lightweight sentiment, usefulness, or quality signals from users.

Best practices

Props

Name Type Default Description
label string "Feedback" Trigger button text.
heading string "Send feedback" Heading shown above the rating row.
placeholder string "What can we improve?" Placeholder for the message field.
submitLabel string "Send" Submit button text.
ratingLabel string "Rating" Accessible name of the row of rating toggles. Each toggle is named by its rating's value.
ratings FeedbackRating[] 🙁 / 😐 / 🙂 The rating options shown as a row of toggles. Each is { value, label }.
onSubmit (data: { rating?: string; message: string }) => void — Called with the selected rating + message when the form is submitted. The thanks shows right away; send the report in the background.
successMessage string "Thanks for the feedback." The line shown, and read out, for about 1.2s after sending, before the popover closes on its own.
motion "full" | "subtle" | "off" "full" How much motion this component uses: full (default) inherits the app's policy, subtle keeps feedback and drops the flourish, off stills it. It can only turn motion down — it never overrides a reader's reduce-motion setting. The drawn check is the flourish; the thanks line and its dwell stay.

Tokens used

popover, popover-foreground, border, input, card, foreground, muted-foreground, accent, accent-foreground, ring, success, success-mark

Motion

Accessibility

Related

Examples

Basic

import { Feedback } from "@sableui/react"

<Feedback onSubmit={({ rating, message }) => console.log(rating, message)} />

Custom labels

import { Feedback } from "@sableui/react"

<Feedback label="Tell us" submitLabel="Send it" placeholder="Describe the issue…" />

Custom thanks

import { Feedback } from "@sableui/react"

<Feedback successMessage="Got it — thank you." onSubmit={({ rating, message }) => report(rating, message)} />