← All components
Interaction / component

Thought Line

A breathing reasoning line with a live timer, shimmer, folding trace and a considered completion transition.

Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • Thought preserves the original breathing, shimmer, timer, folding synthetic trace and visual settlement. These are labelled sample steps, with no internal model reasoning.
  • Inline/Trace calculate actual Unicode code points, words and lines locally. ActivityStream displays a full caller-retained history; maxVisible hides older rows without deleting them.
  • mergeActivityEvents validates a whole matching batch atomically, keeps first ID order and takes only greater per-ID sequence revisions. Same revisions are idempotent; foreign requests are ignored.
  • Use a fresh requestId for each job. Caller completion is authoritative. New activity contexts always use settleAfter=0 and retain results, input and disclosure through Pause/Replay. The untouched legacy Demo explicitly restarts its synthetic scene on Replay.
  • Full eligible React Bits primitives, helper code, styles, dependency notices and the controlled caller example remain included.
React 19.2Modern browsers

React Bits — David Haz · MIT + Commons Clause; reuse separately authorized. Exact notice bundled.

Hugeicons · MIT; installed packages include their notices.

Props

PropTypeDefaultDescription
colorstringcurrentColorText; see primitive interface for full options.
glyphColorstringemptyGlyph; see primitive interface for full options.
fontSizenumber16Text size; see primitive interface for full options.
settleAfternumber0 (primitive); 8 (legacy Demo)Legacy Demo: automatic visual settlement after8 seconds; use0 for caller-controlled ThoughtLine. New Inline/Trace always use0.
shimmerbooleanTrueShimmer; see primitive interface for full options.
showTimerbooleanTrueTimer; see primitive interface for full options.
pausedbooleanfalseSuspend decoration without changing caller state, retained text, local input or results.
replayTokennumber0Restart decoration while retaining caller state and local work in the new contexts. Legacy Thought/Lattice Demo explicitly restarts its synthetic interaction.
labelstringThinking…ThoughtLine: working text.
doneLabelstringautomaticThoughtLine: settled text; automatic timer wording when omitted.
renderLabel(text: string, working: boolean) => ReactNodeundefinedThoughtLine: custom presentation of the authoritative state label.
glyphsparkle | dot | none | ReactNodesparkleThoughtLine: bundled native glyph choice or caller node.
stepsstring[][]ThoughtLine: caller steps; legacy Demo supplies labelled synthetic steps.
collapsiblebooleantrueThoughtLine: allow trace disclosure.
collapseOnSettlebooleantrueThoughtLine: collapse trace on caller/explicit settlement.
breathPeriodnumber seconds1.6ThoughtLine: breathing cycle duration.
breathDepthnumber0.45ThoughtLine: glyph breathing depth.
shimmerDurationnumber seconds1.8ThoughtLine: sheen duration.
settleDurationnumber milliseconds350ThoughtLine: settlement transition duration.
settleBlurnumber pixels2ThoughtLine: settlement blur.
workingbooleantrueThoughtLine: caller-owned running state. New local contexts derive this from actual operations and set settleAfter=0.
elapsednumber secondsundefinedThoughtLine: optional caller-owned elapsed time.
onSettle(seconds: number) => voidundefinedThoughtLine: callback for explicit legacy auto-settlement; no service operation.
classNamestringemptyAdditional primitive classes.
styleCSSPropertiesundefinedAdditional primitive styles.
headlinestringA little clarity, one step at a time.Activity examples: heading.
requestIdstringrequiredActivityStream: fresh caller job identity. Foreign events are ignored.
eventsreadonly ActivityEvent[]requiredActivityStream: full caller-retained history with stable id, nonnegative sequence revision, label, optional detail and queued/running/complete/error/cancelled state.
stateidle | running | complete | error | cancelledrequiredActivityStream: authoritative caller request state.
maxVisiblenumber20ActivityStream: latest visible events, clamped1–100; retained history is not discarded.
defaultOpenbooleanfalseActivityStream: initial disclosure; Replay retains subsequent disclosure.