ValyroUI Русская версия

Stepper

Step-by-step progress. Free, MIT · Navigation and layout › Switching

Installation

npx valyro-cli@latest add stepper
npx shadcn@latest add https://valyro.xyz/r/stepper.json
npm install valyro-ui

import 'valyro-ui/styles.css';
import { Stepper } from 'valyro-ui';

Props

PropTypeDefault
stepsStepperStep[]Steps in order; their state follows from value unless marked as failed. Or compose them as Stepper.Step children.
childrenReactNodeThe compound form instead of steps: Stepper.Step elements.
valuenumberIndex of the current step.
defaultValuenumber0Initial value when uncontrolled.
onValueChange(index: number) => voidCalled with the new value when it changes.
orientation'horizontal' | 'vertical''horizontal'Steps in a row joined by connectors, or stacked in a column with a connector line down the side.
clickablebooleanfalseSteps before the current one become buttons that jump back to them.
labelsPartial<StepperLabels>Screen-reader text announced after each step title, per state.

Compound parts

Stepper.Step (StepperStepPart)

Related components

Previous: Pagination · Next: Dropdown Menu · All Navigation and layout