콘텐츠로 이동
RefineUI

Stepper

인디케이터와 제목이 있는 다단계 플로우용 단계 목록.

Stepper는 순서 있는 단계의 진행을 추적합니다. 위저드·온보딩에 사용하세요. 선형 진행만 필요하면 Progress 또는 ProgressStepper를 권장합니다.

  1. AccountProfile & email
  2. PlanBilling cycle
  3. ReviewConfirm details

Overview

Machine-readable contract from Component Spec.

component: stepperexport: Stepperversion: 1attributes: data-refineui=stepper

Anatomy

Partdata-refineui
rootstepper
contentstepper-content
descriptionstepper-description
indicatorstepper-indicator
itemstepper-item
liststepper-list
separatorstepper-separator
separator_fillstepper-separator-fill
separator_railstepper-separator-rail
separator_trackstepper-separator-track
titlestepper-title

States

ScopeCategoryValues
componentcomponentdata-state: complete, current, upcoming
componentenvironmentforced-colors, dir
stepper-itemcomponentdata-state: complete, current, upcoming

Keyboard

KeyActionNative
Enteractivatetrue
Spaceactivatetrue

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import {
Stepper,
StepperList,
StepperItem,
StepperIndicator,
StepperTitle,
StepperDescription,
StepperSeparator,
} from "@refineui/react";
<Stepper value={step} onValueChange={setStep}>
<StepperList>
<StepperItem value={0}>
<StepperIndicator>1</StepperIndicator>
<StepperTitle>Account</StepperTitle>
<StepperDescription>Profile & email</StepperDescription>
</StepperItem>
<StepperSeparator />
<StepperItem value={1}>
<StepperIndicator>2</StepperIndicator>
<StepperTitle>Plan</StepperTitle>
</StepperItem>
</StepperList>
</Stepper>