Skip to content
Browse docs and components

Reasoning

reasoning

A model's visible thinking that opens while it thinks and folds away when the answer arrives, with a live timer and a 'Thought for 4s' summary. Once the reader opens or closes it, it stays where they left it.

Responsive

Install

$npxshadcnadd@forme/reasoning

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Reasoning

A model's visible thinking, folded away once the answer arrives.

PropTypeDefaultDescription
streaming*boolean—True while the model is still thinking.
children*ReactNode—
durationnumber—Seconds spent thinking, for the summary once it is done.
classNamestring—