Sean Hello

Stepper

Forms 91

About

A step-by-step process for users to navigate through a series of steps.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stepper to your project and fits it to your theme.

Code

How Stepper is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  Stepper,
  StepperContent,
  StepperIndicator,
  StepperItem,
  StepperNav,
  StepperPanel,
  StepperTitle,
  StepperTrigger,
} from '@/components/ui/stepper';

const steps = [{ title: 'User Details' }, { title: 'Payment Info' }, { title: 'Auth OTP' }, { title: 'Preview Form' }];

export default function Component() {
  return (
    <div className="flex flex-col gap-5 p-10 w-full mx-auto max-w-[600px] h-screen justify-center items-center">
        <Stepper defaultValue={2} className="space-y-8">
        <StepperNav className="gap-3.5 mb-15">
            {steps.map((step, index) => {
            return (
                <StepperItem key={index} step={index + 1} className="relative flex-1 items-start">
                <StepperTrigger className="flex flex-col items-start justify-center gap-3.5 grow">
                    <StepperIndicator className="bg-border rounded-full h-1 w-full data-[state=active]:bg-primary"></StepperIndicator>
                    <div className="flex flex-col items-start gap-1">
                    <StepperTitle className="text-start font-semibold group-data-[state=inactive]/step:text-muted-foreground">
                        {step.title}
                    </StepperTitle>
                    </div>
                </StepperTrigger>
                </StepperItem>
            );
            })}
        </StepperNav>

        <StepperPanel className="text-sm">
            {steps.map((step, index) => (
            <StepperContent key={index} value={index + 1} className="flex items-center justify-center">
                Step {step.title} content
            </StepperContent>
            ))}
        </StepperPanel>
        </Stepper>
    </div>
  );
}

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.3K
  • Line Charts 9

    Line Charts 9

    637
  • Alert

    Alert

    492
  • Area Charts 1

    Area Charts 1

    385
  • Line Charts 6

    Line Charts 6

    384
  • Scroll Area

    Scroll Area

    376
  • Area Charts 2

    Area Charts 2

    317
  • Navigation Menu

    Navigation Menu

    305

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83