---
title: Thoughts
description: The "Show thinking" step with thoughts and the searches Gemini ran.
---

<Component path="gemini/examples/gemini-thoughts" />

<RegistryInstall name="gemini-thoughts" />

A shadcn `Collapsible`, closed by default like Gemini's own. The trigger is a ghost `Button` with just the label and a chevron, and its label switches between "Show thinking" and "Hide thinking". Open, it lists the steps behind a thin rule: thoughts as muted paragraphs, and searches as a "Searching the web" line with the queries as outlined chips. It takes every `Collapsible` prop, so `open`, `defaultOpen` and `onOpenChange` work. Pass it to the `thoughts` slot of `GeminiMessage`.

| Prop | Default | Description |
| --- | --- | --- |
| `steps` | | `{ kind: "thought", text }` or `{ kind: "search", queries }` items, in order. |
| `showLabel`, `hideLabel` | Show thinking, Hide thinking | The trigger labels. |

## Used in

**[Gemini](/blocks/gemini)**

A full recreation of the Gemini chat with the animated sparkle, streamed replies and a model picker.
