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
- Account SetupCreate your account credentials
- 2Personal InfoFill in your personal details
- 3PreferencesOptionalCustomize your experience
- 4ConfirmationReview 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)
- Account
- 2Profile
- 3Review
- 4Complete
Rounded (Circle)
- Account
- 2Profile
- 3Review
- 4Complete
Square
- Account
- 2Profile
- 3Review
- 4Complete
Rectangle (Pill)
- Account
- 2Profile
- 3Review
- 4Complete
Dot
- Account
- Profile
- Review
- Complete
Minimal
- Account
- 2Profile
- 3Review
- 4Complete
With Icons
Icon Steps
Steps with custom icons for each step
Rounded with Icons
- AccountSign in or register
- CartReview your items
- PaymentEnter payment details
- ShippingDelivery information
- DoneOrder confirmed
Square with Icons
- AccountSign in or register
- CartReview your items
- PaymentEnter payment details
- ShippingDelivery information
- DoneOrder confirmed
Rectangle with Icons
- AccountSign in or register
- CartReview your items
- PaymentEnter payment details
- ShippingDelivery information
- DoneOrder confirmed
Text Only
Minimal & Dot Styles
Steps without numbers or icons, text labels only
Minimal (no background)
- Account SetupCreate your account credentials
- Personal InfoFill in your personal details
- PreferencesOptionalCustomize your experience
- ConfirmationReview and confirm
Dot indicators
- Account SetupCreate your account credentials
- Personal InfoFill in your personal details
- PreferencesOptionalCustomize your experience
- ConfirmationReview and confirm
Sizes
Size Options
Five sizes from xs to xl
XS
- Account
- 2Profile
- 3Review
- 4Complete
SM
- Account
- 2Profile
- 3Review
- 4Complete
MD
- Account
- 2Profile
- 3Review
- 4Complete
LG
- Account
- 2Profile
- 3Review
- 4Complete
XL
- Account
- 2Profile
- 3Review
- 4Complete
Vertical
Vertical Orientation
Stepper in vertical layout
Rounded
- Account SetupCreate your account credentials
- 2Personal InfoFill in your personal details
- 3PreferencesOptionalCustomize your experience
- 4ConfirmationReview and confirm
With Icons
- AccountSign in or register
- CartReview your items
- PaymentEnter payment details
- ShippingDelivery information
Dot
- Account SetupCreate your account credentials
- Personal InfoFill in your personal details
- PreferencesOptionalCustomize your experience
- ConfirmationReview and confirm
Label Placement
Label Positions
Labels positioned below, to the right, or alternating
Bottom (default)
- Account
- 2Profile
- 3Review
- 4Complete
Right
- Account
- 2Profile
- 3Review
- 4Complete
Alternate
- Account
- 2Profile
- 3Review
- 4Complete
Interactive
Clickable Steps
Click on steps to navigate
Free navigation
- 1Account SetupCreate your account credentials
- 2Personal InfoFill in your personal details
- 3PreferencesOptionalCustomize your experience
- 4ConfirmationReview and confirm
Linear (next step only)
- Account SetupCreate your account credentials
- 2Personal InfoFill in your personal details
- 3PreferencesOptionalCustomize your experience
- 4ConfirmationReview and confirm
Step Status
Error & Warning States
Individual steps can have error or warning status
With Error Step
- Validated
- 2Processing
- Payment Failed
- 4Shipping
With Warning Step
- Upload
- Validation2 warnings found
- 3Processing
- 4Complete
Variants
Color Variants
Different color themes for the stepper
primary
- Account
- Profile
- 3Review
- 4Complete
success
- Account
- Profile
- 3Review
- 4Complete
warning
- Account
- Profile
- 3Review
- 4Complete
danger
- Account
- Profile
- 3Review
- 4Complete
info
- Account
- Profile
- 3Review
- 4Complete
default
- Account
- Profile
- 3Review
- 4Complete
Import
import { Stepper } from 'fluxo-ui';
import type { StepItem } from 'fluxo-ui';Props
stepsStepItem[]"-"Array of step definitions with label, description, icon, and status
stepsStepItem[]"-"Array of step definitions with label, description, icon, and status
activeStepnumber"0"Index of the currently active step
activeStepnumber"0"Index of the currently active step
variant'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'"'primary'"Color variant
variant'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'"'primary'"Color variant
size'xs' | 'sm' | 'md' | 'lg' | 'xl'"'md'"Size of indicators and text
size'xs' | 'sm' | 'md' | 'lg' | 'xl'"'md'"Size of indicators and text
layout'default' | 'rounded' | 'square' | 'rectangle' | 'dot' | 'minimal'"'default'"Shape of step indicators
layout'default' | 'rounded' | 'square' | 'rectangle' | 'dot' | 'minimal'"'default'"Shape of step indicators
orientation'horizontal' | 'vertical'"'horizontal'"Layout direction
orientation'horizontal' | 'vertical'"'horizontal'"Layout direction
labelPlacement'bottom' | 'right' | 'alternate'"'bottom'"Position of labels relative to indicators
labelPlacement'bottom' | 'right' | 'alternate'"'bottom'"Position of labels relative to indicators
showStepNumbersboolean"true"Show step numbers inside indicators
showStepNumbersboolean"true"Show step numbers inside indicators
showConnectorsboolean"true"Show connector lines between steps
showConnectorsboolean"true"Show connector lines between steps
clickableboolean"false"Allow clicking on steps to navigate
clickableboolean"false"Allow clicking on steps to navigate
linearboolean"false"Only allow clicking the next step
linearboolean"false"Only allow clicking the next step
completedIconReactElement | IconComponentCustom icon for completed steps
completedIconReactElement | IconComponentCustom icon for completed steps
errorIconReactElement | IconComponentCustom icon for error steps
errorIconReactElement | IconComponentCustom icon for error steps
onChange(step: number) => voidCallback when a step is clicked
onChange(step: number) => voidCallback when a step is clicked
connectorReactNodeCustom connector element
connectorReactNodeCustom connector element
classNamestringAdditional CSS class
classNamestringAdditional CSS class
disabledboolean"false"Disable all interaction
disabledboolean"false"Disable all interaction
idstringHTML id attribute
idstringHTML id attribute
ariaLabelstringAccessible label
ariaLabelstringAccessible 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