Fluxo UIFluxo UIv0.4.1

Stepper

A step indicator component with multiple layouts, icon support, vertical/horizontal orientations, and interactive navigation for wizard flows.

Basic

Basic Stepper

Simple numbered stepper with descriptions

  1. Account SetupCreate your account credentials
  2. 2
    Personal InfoFill in your personal details
  3. 3
    PreferencesOptionalCustomize your experience
  4. 4
    ConfirmationReview and confirm
import { Stepper } from 'fluxo-ui';

const steps = [
  { label: 'Account Setup', description: 'Create your account credentials' },
  { label: 'Personal Info', description: 'Fill in your personal details' },
  { label: 'Preferences', description: 'Customize your experience', optional: true },
  { label: 'Confirmation', description: 'Review and confirm' },
];

<Stepper steps={steps} activeStep={1} />

Layouts

Indicator Shapes

Different shapes for step indicators

Default (Rounded Rect)

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Rounded (Circle)

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Square

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Rectangle (Pill)

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Dot

  1. Account
  2. Profile
  3. Review
  4. Complete

Minimal

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

With Icons

Icon Steps

Steps with custom icons for each step

Rounded with Icons

  1. AccountSign in or register
  2. CartReview your items
  3. PaymentEnter payment details
  4. ShippingDelivery information
  5. DoneOrder confirmed

Square with Icons

  1. AccountSign in or register
  2. CartReview your items
  3. PaymentEnter payment details
  4. ShippingDelivery information
  5. DoneOrder confirmed

Rectangle with Icons

  1. AccountSign in or register
  2. CartReview your items
  3. PaymentEnter payment details
  4. ShippingDelivery information
  5. DoneOrder confirmed

Text Only

Minimal & Dot Styles

Steps without numbers or icons, text labels only

Minimal (no background)

  1. Account SetupCreate your account credentials
  2. Personal InfoFill in your personal details
  3. PreferencesOptionalCustomize your experience
  4. ConfirmationReview and confirm

Dot indicators

  1. Account SetupCreate your account credentials
  2. Personal InfoFill in your personal details
  3. PreferencesOptionalCustomize your experience
  4. ConfirmationReview and confirm

Sizes

Size Options

Five sizes from xs to xl

XS

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

SM

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

MD

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

LG

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

XL

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Vertical

Vertical Orientation

Stepper in vertical layout

Rounded

  1. Account SetupCreate your account credentials
  2. 2
    Personal InfoFill in your personal details
  3. 3
    PreferencesOptionalCustomize your experience
  4. 4
    ConfirmationReview and confirm

With Icons

  1. AccountSign in or register
  2. CartReview your items
  3. PaymentEnter payment details
  4. ShippingDelivery information

Dot

  1. Account SetupCreate your account credentials
  2. Personal InfoFill in your personal details
  3. PreferencesOptionalCustomize your experience
  4. ConfirmationReview and confirm

Label Placement

Label Positions

Labels positioned below, to the right, or alternating

Bottom (default)

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Right

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Alternate

  1. Account
  2. 2
    Profile
  3. 3
    Review
  4. 4
    Complete

Interactive

Clickable Steps

Click on steps to navigate

Free navigation

  1. 1
    Account SetupCreate your account credentials
  2. 2
    Personal InfoFill in your personal details
  3. 3
    PreferencesOptionalCustomize your experience
  4. 4
    ConfirmationReview and confirm

Linear (next step only)

  1. Account SetupCreate your account credentials
  2. 2
    Personal InfoFill in your personal details
  3. 3
    PreferencesOptionalCustomize your experience
  4. 4
    ConfirmationReview and confirm

Step Status

Error & Warning States

Individual steps can have error or warning status

With Error Step

  1. Validated
  2. 2
    Processing
  3. Payment Failed
  4. 4
    Shipping

With Warning Step

  1. Upload
  2. Validation2 warnings found
  3. 3
    Processing
  4. 4
    Complete

Variants

Color Variants

Different color themes for the stepper

primary

  1. Account
  2. Profile
  3. 3
    Review
  4. 4
    Complete

success

  1. Account
  2. Profile
  3. 3
    Review
  4. 4
    Complete

warning

  1. Account
  2. Profile
  3. 3
    Review
  4. 4
    Complete

danger

  1. Account
  2. Profile
  3. 3
    Review
  4. 4
    Complete

info

  1. Account
  2. Profile
  3. 3
    Review
  4. 4
    Complete

default

  1. Account
  2. Profile
  3. 3
    Review
  4. 4
    Complete

Import

import { Stepper } from 'fluxo-ui';
import type { StepItem } from 'fluxo-ui';

Props

steps
StepItem[]"-"

Array of step definitions with label, description, icon, and status

activeStep
number"0"

Index of the currently active step

variant
'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'"'primary'"

Color variant

size
'xs' | 'sm' | 'md' | 'lg' | 'xl'"'md'"

Size of indicators and text

layout
'default' | 'rounded' | 'square' | 'rectangle' | 'dot' | 'minimal'"'default'"

Shape of step indicators

orientation
'horizontal' | 'vertical'"'horizontal'"

Layout direction

labelPlacement
'bottom' | 'right' | 'alternate'"'bottom'"

Position of labels relative to indicators

showStepNumbers
boolean"true"

Show step numbers inside indicators

showConnectors
boolean"true"

Show connector lines between steps

clickable
boolean"false"

Allow clicking on steps to navigate

linear
boolean"false"

Only allow clicking the next step

completedIcon
ReactElement | IconComponent

Custom icon for completed steps

errorIcon
ReactElement | IconComponent

Custom icon for error steps

onChange
(step: number) => void

Callback when a step is clicked

connector
ReactNode

Custom connector element

className
string

Additional CSS class

disabled
boolean"false"

Disable all interaction

id
string

HTML id attribute

ariaLabel
string

Accessible label

Features

Multiple Layouts

Six indicator shapes: default rounded-rect, circle, square, rectangle pill, dot, and minimal text-only

Custom Icons

Pass custom icons per step for active, completed, and default states

Vertical & Horizontal

Both orientations with automatic connector adjustment

Interactive Navigation

Clickable steps with optional linear restriction for wizard flows

Step Status

Individual step status with error, warning, completed, active, and pending states

Label Placement

Labels can be placed below, to the right, or alternating above/below