Thinking Bar

A component to display the thinking state of an AI model with optional actions.

Examples

Interactive thinking bar

Installation

npx shadcn add "https://prompt-kit.com/c/thinking-bar.json"

Component API

ThinkingBar

PropTypeDefaultDescription
textstring"Thinking"The text to display
stopLabelstring"Answer now"The text for the stop button
onStop() => voidCallback when the stop button is clicked
onClick() => voidCallback when the bar is clicked
classNamestringAdditional CSS classes