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
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "Thinking" | The text to display |
| stopLabel | string | "Answer now" | The text for the stop button |
| onStop | () => void | Callback when the stop button is clicked | |
| onClick | () => void | Callback when the bar is clicked | |
| className | string | Additional CSS classes |