Feedback Bar
A component to collect user feedback on AI responses.
Examples
Basic usage
Was this response helpful?
Installation
npx shadcn add "https://prompt-kit.com/c/feedback-bar.json"Component API
FeedbackBar
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | The question or title to display | |
| icon | React.ReactNode | An icon to display next to the title | |
| onHelpful | () => void | Callback when "helpful" is clicked | |
| onNotHelpful | () => void | Callback when "not helpful" is clicked | |
| onClose | () => void | Callback when the close button is clicked | |
| className | string | Additional CSS classes |