Skip to Content
Urban Cowboy
Components

Progress Step

Individual progress marker and the composed ProgressStepper list.

ProgressStep is a single clickable marker with default, current, complete, loading and disabled states. ProgressStepper composes several of them from a currentStep value. The docs grid shows every state side by side.

Props

PropValuesNotes
stepnumberStep number shown in the marker
labelstringStep name
statedefault, current, completeVisual state
onClickcallbackOptional navigation
showCheckOnCompletebooleanReplace the number with a check when complete
isLoading / disabledbooleanBusy and disabled states

ProgressStepper accepts currentStep, steps and showCheckOnComplete and derives the per-step state.

Accessibility

State is conveyed by text and icons as well as colour. Disabled steps are not focusable, and a busy step announces its loading state.

Responsive behaviour

The comparison grid goes from one column on phones to two at sm; individual step rows wrap within their card.

Usage

import { ProgressStepper } from '@/components/booking/progress/ProgressStep';

<ProgressStepper currentStep={2} showCheckOnComplete steps={steps} />

View source