ngx-prompt-kit

Feedback Bar

A pill bar prompting the user to rate an assistant response. Thumbs up / thumbs down / dismiss, all spartan ghost icon buttons.

Examples

Default

Plain title plus the three action buttons.

Was this helpful?

With a custom leading icon

Project an icon into the [icon] slot — use any ng-icon.

Tell us how the model did.

Installation

Add the feedback-bar component (and the cn() utility) to your project.

ng generate ngx-prompt-kit:feedback-bar

It is built on spartan/ui, so add these helm components too: button.

ng g @spartan-ng/cli:ui button

Component API

PkFeedbackBar

PropTypeDefaultDescription
titlestring '' Bar label.
helpfuloutput<void> — Fires on thumbs-up click.
notHelpfuloutput<void> — Fires on thumbs-down click.
closedoutput<void> — Fires on the X close click.
classstring — Extra classes for the wrapper.
[icon] slotng-content — Project a leading icon (any element with the icon attribute).