Components / Reasoning / Steps
Steps
A collapsible, numbered list of completed steps with a side rail.
Installation
Install the Steps React component with the shadcn CLI (after adding the @ai-primitive registry and theme, see Installation):
npx shadcn@latest add @ai-primitive/steps
Usage
import { Steps, StepsTrigger, StepsContent, StepsItem } from "@/components/ui/steps"
Related components
- Reasoning - A collapsible "thinking" block that auto-opens while streaming and closes when done.
- Chain of Thought - A vertical trail of collapsible reasoning steps, connected by a line.
- Tool - A collapsible tool-call card showing its state, input, output, or error.
- Source - An inline citation chip that opens a hover card with the linked page's details.
Previous: Chain of Thought · Next: Tool