Thinking UI

BranchingPRO

A line grows and forks; dead branches fade, the surviving path lights up to its tip, then the tree dissolves and regrows differently.

Code

2 files · 246 lines of TypeScriptPRO

Branching is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • Reasoning as a search: the line explores several branches at once, then commits. Dead branches fade from the leaves inward while light travels up the chosen path.
  • Every branch shoots out and slows as it reaches its fork, and growing tips glow, so the eye follows the frontier rather than the whole tree.
  • Each cycle grows a new seeded tree (spread, lean, bow and pruning all vary), fitted to the canvas. Pass a different seed to neighbouring instances so they never grow in step.
  • The dissolve travels up from the root like the growth played out. Reduced motion shows the pruned tree with its path lit and a ring at the conclusion.

Usage

Example
<StatusPill icon={<BranchTree size={32} />} label="Reasoning" />

Props

PropTypeDefaultDescription
sizenumber32Size in px.
depthnumber4Levels of forking, 2–5. Use 3 at 24px.
cyclenumber5Seconds per grow, prune, resolve and dissolve.
seednumber0Offsets the sequence of trees, so neighbouring instances grow differently.
classNamestring—Classes for the canvas.