Thinking Block

React Thinking panel with a chevron header and aria-expanded that reveals the model's intermediate reasoning in muted text. Collapsed by default in chat.

src/registry/ui/thinking-block.tsx/r/thinking-block.json

Installation#

bash
npx shadcn@latest add @minidev/thinking-block

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/thinking-block.json

Usage#

tsx
import { ThinkingBlock } from "@/components/ui/thinking-block"

export function Example() {
  return (
    <ThinkingBlock>Considering Hairline tokens, violet accent, and reduced motion…</ThinkingBlock>
  )
}

API reference#

ThinkingBlock props
PropTypeDefault
children*React.ReactNode-
defaultOpenbooleanfalse
classNamestring-

* required

Dependencies#

npm

lucide-react

Built from

No other MiniDev files

Examples#

All AI chat UI components for React

Learn more