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

PropTypeDefaultDescription
titlestringThe question or title to display
iconReact.ReactNodeAn icon to display next to the title
onHelpful() => voidCallback when "helpful" is clicked
onNotHelpful() => voidCallback when "not helpful" is clicked
onClose() => voidCallback when the close button is clicked
classNamestringAdditional CSS classes