Skip to Content

Stepper

Steps before current show as finished, the current one as active. A step can override its state via status ('finish' | 'process' | 'wait' | 'error').

Cart
3 items
2
Shipping
Address & carrier
3
Payment
4
Done
import { Stepper } from '@gg-software/ui'; <Stepper current={step} steps={[ { title: 'Cart', description: '3 items' }, { title: 'Shipping', description: 'Address & carrier' }, { title: 'Payment', status: paymentFailed ? 'error' : undefined }, { title: 'Done' }, ]} orientation="vertical" />;

Props

PropTypeDefaultDescription
steps*Step[]
currentnumber0
orientation"horizontal" | "vertical"horizontal
classNamestring

* required · generated from packages/ui/src/navigation/Stepper/Stepper.tsx

Types

type Step = { title: ReactNode; description?: ReactNode; status?: 'finish' | 'process' | 'wait' | 'error'; };