# Stacked Steps (Pro)

> A looping deck of how-it-works cards, each a duotone icon, a title and a line, where the front card flies out a different side each step, left, right, up, down, and tucks away to the back every few seconds. Pointing at it holds the deck and fans the cards out from the right towards the top.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Feature Sections |
| Live preview | https://uibrik.com/components/stacked-steps |
| Writes | 1 file into `components/uibrik/stacked-steps/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/stacked-steps
```

No license yet? Tell the user Stacked Steps is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=stacked-steps#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { StackedSteps } from "@/components/uibrik/stacked-steps/stacked-steps";

<StackedSteps
  autoplay
  duration={2000}
  peek={14}
  shrink={0.06}
  label="How it works"
  onStepChange={(step) => {}}
  // steps={[{ title: "…", description: "…", icon: <…/> }]}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/stacked-steps.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `autoplay` | `boolean` | `true` | Turn the deck on its own. Holds while pointed at or focused, and with reduced motion. |
| `duration` | `number` | `2000` | How long each step stays in front while playing. |
| `peek` | `number` | `14` | How much of each card behind shows above the one in front. |
| `shrink` | `number` | `0.06` | How much smaller each card behind is than the one in front. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `steps` | `{ title: string; description: string; icon: ReactNode; color?: string }[]` | `3 sample steps` | Steps in order. The icon sits in a tile tinted with color; <Duotone icon={…} fill={…} /> pairs a Tabler outline icon with its filled twin. |
| `label` | `string` | `"How it works"` | Names the deck for screen readers. |
| `onStepChange` | `(step: number) => void` |  | Called with the new step, from 0. |
| `className` | `string` |  | Classes for the deck. |

## Where it fits

- **How-it-works sections**: A looping deck of cards with duotone icons explains steps one at a time. Pairs with [Feature Morph](https://uibrik.com/components/feature-morph.md) (Pro).
- **Onboarding overviews**: The front card flying out a different side each step keeps attention.
- **Feature walkthroughs**: Cards tucking back into the deck make the loop feel endless.

## Same shelf: Feature Sections

- [Benchmark Race](https://uibrik.com/components/benchmark-race.md) (Pro): Animated benchmark bar chart: bars race in, numbers count up, tabs switch the metric, rows re-sort.
- [Comparison Table](https://uibrik.com/components/comparison-table.md) (Pro): Your product against the alternatives, feature by feature: your column stands up as a card from its logo to its button, checks draw in row by row as the table scrolls into view, and a soft band glides from row to row under the pointer.
- [Exploded View](https://uibrik.com/components/exploded-view.md) (Pro): A product drawn as a stack of isometric layers that pulls apart as it scrolls into view; pointing at a layer lifts everything above it away and names what that layer does.
- [Feature Morph](https://uibrik.com/components/feature-morph.md) (Pro): A row of icon tiles with one feature open in the middle as a card; every few seconds the card folds back into its icon and the next icon grows into the card.
- [Icon Hive](https://uibrik.com/components/icon-hive.md) (Pro): An integrations block: a field of soft tiles around your logo with app logos scattered across it: tiles grow in ring by ring, icons hop between tiles or a wave rolls out, and tiles swell under the pointer.
- [Integration Orbit](https://uibrik.com/components/integration-orbit.md) (Pro): Your logo at the centre of two slow rings of app icons; pointing at one stops the rings, draws a line to the middle and names the app.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/stacked-steps/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
