Skip to content

ThinkingBlock

Stable

A closed note of the assistant's thinking. It shimmers while it works and shows how long it took when done.

Also known as reasoning, chain of thought, thoughts, thinking

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Active

Use while the assistant is still thinking.

When to use it

Keeps the assistant's reasoning out of the way but within reach. It starts closed, shimmers while the assistant works, then says how long it took.

Made of: Arrow · Status label · Thinking text

Use it for

  • Reasoning the assistant shows before its answer.
  • Letting people check how an answer was reached, if they want to.

Not for

Do and avoid

The 7 am flight is cheapest.

Do. Reasoning stays folded away, so the answer comes first.

First I looked at all flights. Then I checked prices. Then I compared arrival times. Then I checked bags. Then I looked again at prices…

The 7 am flight is cheapest.

Avoid. Long reasoning shown open pushes the real answer out of sight.

Do

  • Show it above the answer, so the answer stays the main thing.
  • Switch to the finished look with the real time taken.
  • Keep it closed so people choose to see the detail.
  • Pass seconds once thinking ends. Without it, the heading says 0s.

Avoid

  • Do not open it by default. It has no setting for that.
  • Do not present the thinking as a checked source.
  • Do not show a made-up time. Leave the block out instead.

On a phone

  • The header is a full-width button with a tap area at least 44px tall on touch screens.
  • The opened text sits behind a left rule and wraps to the screen width.
  • It is closed by default, so it takes one line on a phone until someone taps it.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started