Think

A folding block that shows a model's reasoning above its answer, with a spinner while it is still thinking.

Basic

Pass title for the header and the reasoning as children, and click the header to fold or unfold it.

Loading

Set loading while the model is still thinking to show a spinner, and blink to make the title shimmer.

Folded

Set defaultExpanded to false to start folded, so the reader opens the reasoning only when they want it.

Controlled

Hold expanded in state and update it from onExpand, so a button outside can fold or unfold the reasoning too.

In context

The component inside real screens, with the components it usually sits beside.

Assistant reply

An assistant reply in a Bubble, with the folded reasoning above the answer.

Research assistant

A research panel where the reasoning runs open while the model thinks, folds when it is done, and the answer streams in below.

Math tutor

An algebra tutor that solves an equation with its worked steps open in the reasoning, followed by the answer and follow-up buttons.

Support reply draft

A support ticket where the assistant checks the billing history in folded reasoning before suggesting a reply to send.