Thinking
Show what a model is doing while it works. A shader orb and a live label that follows each step, a collapsible trail of searches, source chips and reasoning, then an answer with citations right beside the claims they support.
Add the Pro registry to components.json
components.json Add your token
Create a token on your account page and put it in
.env.localasHEXTAUI_PRO_TOKEN.Add the block
pnpm dlx shadcn@latest add @hextaui-pro/thinking
With the AI SDK
Map a useChat message’s parts: reasoning parts into Reasoning and text into CitedText, with source-url parts as its sources. Ask the model to cite with [1], [2] at the end of the sentence they support.
With tool steps
Turn tool calls into steps. A call that is still running shows a spinner and a shimmer, and checks off when its output arrives.
Code
5 files, added to components/blocks/thinking.