Navigation

Stepper.

A clear sequence with current, completed and unavailable steps.

LIVE PREVIEWTry it. It works.

Install the source

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/stepper.json

Registry setup · Examples · API and behavior · Open the playground

COMPLETE EXAMPLES

Use it in context.

Each example includes its imports, data and state. The preview runs that same source. Include the stylesheet once in your application.

A controlled sequence

The host chooses the current and completed steps; a later step can remain unavailable.

Loads this example when you need it.

Keyboard

  • Tab visits available steps; Enter changes the current step.

States covered

  • Completed
  • Current
  • Disabled next step

Install this complete example and its component dependencies.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/example-basic-stepper.json
Complete source
React / TypeScript
/*!
MIT License

Copyright (c) 2026 Jaison

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
'use client';
import {useState} from 'react';
import {Stepper} from '@bld8/ui';
import '@bld8/ui/styles.css';
export default function StepperExample(){const [step,setStep]=useState('review');return <div><Stepper label="Example review steps" value={step} onValueChange={setStep} completed={['prepare']} steps={[{value:'prepare',label:'Prepare example'},{value:'review',label:'Review example'},{value:'publish',label:'Publish example',disabled:true}]}/><p>Current step: {step}</p></div>;}

Quick reference

React / TypeScript
<Stepper label="Setup steps" steps={steps} value={current}
  completed={completed} onValueChange={setCurrent} />

In the workspace or ZIP starter, import components from @bld8/ui and include @bld8/ui/styles.css once. Registry installations use your local bld8/ source path. Wrap overlays in UIProvider.

API & behaviour

Ordered navigation with stable values, labels and optional descriptions. aria-current=step marks the current step; completion has text for assistive technology. The host controls which steps are disabled and performs validation before advancing. Omit onValueChange for a read-only sequence. Native buttons remain keyboard accessible. orientation is horizontal or vertical, with narrow containers stacking automatically. Marker changes use restrained easing and live reduced-motion preferences. This component does not own form values, validation or persistence.

Stepper

Stepper public properties
PropTypeDefault
labelRequiredstring—
stepsRequiredreadonly StepperStep[]—
valueRequiredstring—
completedreadonly string[] | undefined[]
disabledboolean | undefinedfalse
onValueChange((value: string) => void) | undefined—
orientation"horizontal" | "vertical" | undefined'horizontal'

StepperStep

StepperStep public properties
PropTypeDefault
labelRequiredstring—
valueRequiredstring—
descriptionstring | undefined—
disabledboolean | undefined—

Tables come from the public TypeScript declarations. Related types and function parameters are shown alongside their component. A dash means no default is declared at the public function boundary.

Related controls

Notes to self

Test this component with real content, keyboard input and both themes. The example is a starting point; labels, error handling and behaviour still need to fit the application.