Vibary.ai
← Vibe Coding

Reasoning Steps Unfold

A collapsed trace line opens into numbered reasoning steps, each arriving as the panel grows.

aicalmminimalinteraction · finite · intermediate · ~0.5s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

281 lines · react + motion only
import { useState } from "react";
import {
  AnimatePresence,
  motion,
  useReducedMotion,
  type Variants,
} from "motion/react";

About this pattern

The trace behind an answer, kept out of the way until someone wants it. Collapsed, it is a single quiet line; expanded, it is the ordered account of how the answer was reached. The panel height tweens on a hard-eased curve while the steps land on a short stagger, so the eye follows the account downward instead of being handed a wall of prose. The rail beside the numbers extends with them, which is what makes the list read as a sequence rather than a set.

Chain of thought disclosureAgent trace panelExplain the answerAudit log expansion

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • 10:15
    Summarise the supplier contract and flag anything unusual.
    The renewal runs another twelve months at the same rate, with one clause worth a second look.
    Supplier contract.docxQ3 planning notes
    Ask a follow-up
    AI assistant

    A collapsed reasoning summary that expands into the intermediate steps.

Related patterns