Steps

Displays a sequence of operations in a collapsible layout. Each step can include details and an optional vertical bar. Useful for showing AI steps like reasoning traces, tool calls, or process logs.

Examples

Steps basic

Searching files in repo...
Found 12 files (src, docs)
Parsing markdown and code blocks
Selecting tool: summarize
Running summarize(tool) with top 5 files
Summary generated

Steps with sources

You can use the Source component to display sources in the Steps block.

Searching across curated sources...
Top matches
Extracting key sections and summarizing…

Steps with custom icons swap and bar

Initializing build context
Scanning 25 markdown files
Generating embeddings (chunk size: 1,024)
Index created

Steps with Text Shimmer Loader

You can use the Loader component to display a text shimmer loader in the Steps block.

Planning next actions…
Searching repository files…
Parsing and extracting key sections…
Ready to respond

Installation

Copy and paste the following code into your project.

pnpm dlx shadcn-svelte@latest add https://ai-elements.vercel.app/r/prompt-kit-steps.json

Component API

Steps

PropTypeDefaultDescription
defaultOpenbooleantrueWhether the Steps starts expanded
classNamestring-Additional CSS classes
childrenSnippet-Child components to render

StepsTrigger

PropTypeDefaultDescription
childrenSnippet-Trigger content (label)
leftIconSnippet-Optional left icon area; keeps width to avoid layout jump
swapIconOnHoverbooleantrueSwap leftIcon with chevron on hover
classNamestring-Additional CSS classes

StepsContent

PropTypeDefaultDescription
classNamestring-Additional CSS classes
barSnippet-Optional bar element rendered at the left
childrenSnippet-Content to display in the steps

StepsBar

PropTypeDefaultDescription
classNamestringbg-muted h-full w-[2px]Classes for positioning and style

StepsItem

PropTypeDefaultDescription
childrenSnippet-Row item content
classNamestring-Additional CSS classes