ValyroUI English version

Stepper

Пошаговые процессы. Бесплатно, MIT · Навигация и каркас › Переключение

Установка

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';

Пропсы

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.

Составные части

Stepper.Step (StepperStepPart)

Похожие компоненты

Назад: Pagination · Далее: Dropdown Menu · Весь раздел «Навигация и каркас»