ngx-prompt-kit

Thinking Bar

A compact 'still working' indicator — combine the shimmer label with optional click-to-expand or stop affordances.

Examples

Static label

Just the shimmer text. No interaction.

Generating answer

With stop button

Add a stop affordance for cancellable streams.

Streaming response

Clickable + stop

Bar itself becomes clickable with a chevron — open a thinking panel or a tool drawer on click.

Installation

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

ng generate ngx-prompt-kit:thinking-bar

Component API

PkThinkingBar

PropTypeDefaultDescription
textstring 'Thinking' Shimmer label.
stopLabelstring 'Answer now' Stop button label.
showStopboolean false Render the stop button.
clickableboolean false Render the label as a click target with chevron.
stoppedoutput<void>Fires when the stop button is clicked.
clickedoutput<void>Fires when the bar is clicked (when clickable).
classstringExtra classes for the wrapper.