A collapsible AI tool-run steps component with an animated shimmer trigger and a vertical progress bar.
Installation
Usage
How It Works
Stepswraps a shadcnCollapsibleand defaults to open viadefaultOpen.StepsTriggerrenders a shimmer-animated label viaShimmerText.- When a
leftIconis provided it swaps to aChevronDownon hover (togglable viaswapIconOnHover). - Without a
leftIcon, a plainChevronDownis appended to the right of the label instead. StepsContentlays out a two-column grid: the vertical bar column and the content column.StepsBaris a 2px vertical line that highlights blue on hover via the parentgroupclass.StepsItemhighlights its text on hover and styles any<strong>children in blue.
API Reference
Steps
| Prop | Type | Default |
|---|---|---|
defaultOpen? | boolean | true |
className? | string | - |
StepsTrigger
| Prop | Type | Default |
|---|---|---|
leftIcon? | React.ReactNode | - |
swapIconOnHover? | boolean | true |
children | string | - |
StepsContent
| Prop | Type | Default |
|---|---|---|
bar? | React.ReactNode | - |
children | React.ReactNode | - |
StepsBar
A 2px vertical divider line. Highlights to blue-500/40 on hover via the parent group context. Accepts all standard div props.
StepsItem
A single content row. Highlights on hover; <strong> children are rendered in blue-500. Accepts all standard div props.