Skip to content

    Browse components

    Step Flow

    Multi-step flow with a filling progress track, pulsing active step, sliding content that resizes smoothly and a completion state.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/step-flow

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/step-flow.json

    Usage

    import { StepFlow } from "@/components/ui/step-flow";
    
    <StepFlow onComplete={() => save()}>
      <Step title="Account">…</Step>
      <Step title="Plan">…</Step>
      <Step title="Review">…</Step>
    </StepFlow>

    Props

    PropTypeDefaultDescription
    childrenReactNode—`<Step title>` elements, one per step.
    initialStepnumber11-based step to start on.
    accentColorstring"#c6ff3d"Active and completed color.
    accentForegroundstring"#0a0a0a"Text and icon color on the accent.
    backTextstring"Back"Back button label.
    nextTextstring"Continue"Next button label.
    completeTextstring"Complete"Last button label.
    clickableStepsbooleantrueJump to a step by clicking its dot.
    completedContentReactNode—Shown after the last step is completed.
    onStepChangeReactNode—(step: number) => void
    onCompleteReactNode—() => void
    classNamestring—Extra classes for the root element.