Abraham

Steps

Component 18

About

Here is Steps component

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

Code

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

Usage.tsx

"use client";

import { Steps } from "@ark-ui/react/steps";
import { Check } from "lucide-react";

export default function HorizontalSteps() {
  const steps = ["Step One", "Step Two", "Step Three"];

  return (
    <div className="bg-white dark:bg-gray-800 w-full px-4 py-12 rounded-xl flex items-center justify-center">
      <div className="w-full max-w-2xl">
        <Steps.Root count={3} defaultStep={1} className="w-full max-w-2xl">
          <Steps.List className="flex justify-between items-center">
            {steps.map((step, index) => (
              <Steps.Item
                key={index}
                index={index}
                className="relative flex not-last:flex-1 items-center"
              >
                <Steps.Trigger className="flex items-center gap-3 text-left rounded-md group">
                  <Steps.Indicator className="flex justify-center items-center shrink-0 rounded-full font-semibold w-8 h-8 text-sm border-2 data-complete:bg-blue-600 data-complete:text-white data-complete:border-blue-600 data-current:bg-blue-600 data-current:text-white data-current:border-blue-600 data-incomplete:bg-gray-100 data-incomplete:text-gray-500 data-incomplete:border-gray-200 dark:data-incomplete:bg-gray-700 dark:data-incomplete:text-gray-300 dark:data-incomplete:border-gray-600 relative">
                    <span className="group-data-complete:hidden group-data-current:block">
                      {index + 1}
                    </span>
                    <Check className="w-4 h-4 group-data-complete:block hidden" />
                  </Steps.Indicator>
                  <span className="text-sm font-medium text-gray-900 dark:text-gray-100">
                    {step}
                  </span>
                </Steps.Trigger>
                <Steps.Separator
                  hidden={index === steps.length - 1}
                  className="flex-1 bg-gray-200 dark:bg-gray-700 h-0.5 mx-3 data-complete:bg-blue-600"
                />
              </Steps.Item>
            ))}
          </Steps.List>
        </Steps.Root>
      </div>
    </div>
  );
}

Dependencies

More by Abraham

View all
  • Signature Pad

    Signature Pad

    106
  • Carousel

    Carousel

    81
  • timeline-animation

    timeline-animation

    65
  • Basic Toast

    Basic Toast

    56
  • Calendar

    Calendar

    54
  • QR Code

    QR Code

    51
  •  Menu

    Menu

    50
  • Angle Slider

    Angle Slider

    42