Feedback Overview
Feedback Overview summarizes collected feedback reactions with configurable label placement.
<FeedbackOverview label="Rate our product" labelPlacement="inline" type="emoji" size="md" />Installation
npx sdaia-ui@latest add feedback-overview
Usage
import { FeedbackOverview } from "@/components/ui/feedback-overview"<FeedbackOverview labelPlacement="top" />Examples
Default
The default feedback overview with top label placement.
<div className="flex flex-col items-start gap-[32px]"> <FeedbackOverview label="Rate our product" labelPlacement="top" type="emoji" /> <FeedbackOverview label="Rate our product" labelPlacement="inline" type="emoji" /> <FeedbackOverview label="Rate our product" labelPlacement="bottom" type="emoji" /></div>Inline
Feedback overview with the label displayed inline beside the score.
<FeedbackOverview label="Rate your experience" labelPlacement="inline" type="emoji"/>Top
Feedback overview with the label positioned above the score.
<FeedbackOverview label="Was this article helpful?" labelPlacement="top" type="thumb"/>Bottom
Feedback overview with the label positioned below the score.
<FeedbackOverview label="Did you find what you were looking for?" labelPlacement="bottom" type="thumb"/>API Reference
Feedback Overview Props
Props for the Feedback Overview component. Extends FeedbackProps.
Prop | Type | Default | Required |
|---|---|---|---|
label | ReactNode | - | optional |
labelPlacement | 'top' | 'inline' | 'bottom' | 'top' | optional |
type | 'emoji' | 'thumb' | thumb | optional |
size | 'sm' | 'md' | 'lg' | 'md' | optional |
defaultValue | 'like' | 'neutral' | 'dislike' | null | - | optional |
onValueChange | (value: 'like' | 'neutral' | 'dislike' | null) => void | - | optional |
disabled | boolean | false | optional |
dir | 'ltr' | 'rtl' | ltr | optional |