AI Agents Fancy Stable

ReasoningPanel

Collapsible reasoning trace that streams while the model thinks, then folds itself into a one-line summary

Preview

Installation

pnpm add fancy-ui-svelte
import { ReasoningPanel } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { ReasoningPanel } from 'fancy-ui-svelte';
</script>

<ReasoningPanel />

Examples

Basic Usage

Props

PropTypeDefaultDescription
text *string-The reasoning trace so far; hand over a longer string to stream more in
streaming booleanfalseWhether the trace is still growing; drives the timer, shimmer, and autoscroll
open boolean-Expanded state (bindable). Left undefined, the panel opens while streaming and collapses 600ms after it ends, until the reader toggles it by hand
label string"Reasoning"Header text
since number-Epoch ms the current burst started at; pins the live timer's origin
durationMs number-Final duration for the summary line; falls back to the duration the panel measured itself
maxHeight string"12rem"Scroll height of the trace once expanded
onToggle (open: boolean) => void-Called on every open/close, by click or on the panel's own initiative