다른 컴포넌트 보기

COMPONENT / 탐색

Stepper

여러 단계의 진행 위치 안내.

LIVE PREVIEWWEB
  1. 장바구니
  2. 배송지받는 분 정보
  3. 결제
PLAYGROUND미리보기 안의 요소를 직접 조작해 보세요.

사용 코드

import { useState } from 'react';
import * as W from 'woosign-system';

// ThemeProvider와 ToastProvider 안에서 렌더링하세요.
export function Example() {
  const [value, setValue] = useState('paper');
  return (
    <W.Stepper
      label="주문 단계"
      steps={[
        { value: 'paper', label: '장바구니' },
        { value: 'ink', label: '배송지', description: '받는 분 정보' },
        { value: 'ember', label: '결제' },
      ]}
      value={value}
      onValueChange={setValue}
      navigable
    />
  );
}
PropType필수
stepsreadonly StepperStep[]●
valuestring—
defaultValuestring—
onValueChange(value: string) => void—
orientationStepperOrientation—
navigableboolean—
labelstring●

공통 API 기준입니다. 플랫폼별 style, className 및 세부 타입은 타입 정의에서 확인하세요.

← 전체 컴포넌트로 돌아가기