Thinking Bar

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

Thinking

Installation

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

Examples

Demo

Analyzing your question

Props

ThinkingBar

PropTypeDefaultDescription
textstring"Thinking"Text shown in the shimmer label.
stopLabelstring"Answer now"Label used for the stop button.
onStop() => void-Called when the stop button is clicked.
onclick() => void-Called when the thinking text itself is clicked.
classstring-Additional CSS classes for the wrapper.