uibrik

Stacked Steps

Preview

Customize

Duration3500ms
Peek14px
Shrink0.06

Usage

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

<StackedSteps />

Installation

npx shadcn@latest add https://uibrik.com/r/stacked-steps.json
Adds the files to components/uibrik/stacked-steps and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/stacked-steps.

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