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.

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

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/steps.json

Examples

Demo

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

Props

Steps

PropTypeDefaultDescription
childrenSnippet-Nested steps content rendered inside the collapsible wrapper.
classstring-Additional CSS classes for the wrapper.
defaultOpenbooleantrueInitial open state when the component is uncontrolled.
openboolean-Controlled open state for the collapsible steps list.

StepsBar

PropTypeDefaultDescription
classstring-Additional CSS classes for the vertical bar.

StepsContent

PropTypeDefaultDescription
childrenSnippet-Expanded step details rendered beside the bar.
barSnippet-Custom bar content rendered instead of the default `StepsBar`.
classstring-Additional CSS classes for the collapsible content.

StepsItem

PropTypeDefaultDescription
childrenSnippet-Step item content.
classstring-Additional CSS classes for the step item.

StepsTrigger

PropTypeDefaultDescription
childrenSnippet-Trigger label content.
leftIconSnippet-Optional icon rendered before the label.
swapIconOnHoverbooleantrueSwaps the left icon for the chevron on hover.
classstring-Additional CSS classes for the trigger.