Feedback Bar

A compact feedback prompt for AI responses with helpful, not helpful, and dismiss actions.

Was this response helpful?

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/feedback-bar.json

Props

FeedbackBar

PropTypeDefaultDescription
titlestring-Label shown next to the action buttons.
iconSnippet-Optional leading icon snippet rendered before the title.
onHelpful() => void-Called when the thumbs-up button is clicked.
onNotHelpful() => void-Called when the thumbs-down button is clicked.
onClose() => void-Called when the close button is clicked.
classstring-Additional CSS classes for the outer wrapper.