Black Friday: 30% off Pro

Get 30% off

Stacked Steps

Pro

Preview

Connect your stack

Link the repo and the tools you already use. Setup takes about a minute.

Step 1 of 3: Connect your stack. Link the repo and the tools you already use. Setup takes about a minute.

Customize

Duration2000ms
Peek14px
Shrink0.06

Installation

Pro

Stacked Steps is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/stacked-steps

Usage

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: <…/> }]}/>

Where to use Stacked Steps

  • How-it-works sections

    A looping deck of cards with duotone icons explains steps one at a time.

    Pairs with Feature Morph

  • 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.

Props

StackedSteps
autoplay
Type boolean
true
Turn the deck on its own. Holds while pointed at or focused, and with reduced motion.
duration
Type number
2000
How long each step stays in front while playing.
peek
Type number
14
How much of each card behind shows above the one in front.
shrink
Type number
0.06
How much smaller each card behind is than the one in front.
steps
Type { 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
Type string
"How it works"
Names the deck for screen readers.
onStepChange
Type (step: number) => void
–
Called with the new step, from 0.
className
Type string
–
Classes for the deck.