본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Steps

원문 보기 위키 갱신

Steps (스텝)

Steps는 작업 흐름과 현재 완료 정도를 보여 주고, 사용자가 단계를 따라가며 작업을 끝내도록 안내해 주는 내비게이션(Navigation) 컴포넌트예요.

출처: 문서

본문

API

Steps

속성 설명 타입 기본값
lineless 선을 숨길지 여부 boolean -
current 현재 단계 number 1
direction 스텝 바의 방향 'vertical' | 'horizontal' horizontal
labelPlacement 설명 텍스트를 놓을 위치예요. 기본값인 horizontal은 아이콘 오른쪽에 놓고, vertical로 설정하면 아이콘 아래에 놓아요 'horizontal' | 'vertical' horizontal
size 스텝 바의 크기를 지정해요 'default' | 'small' default
status 현재 단계의 상태 'wait' | 'process' | 'finish' | 'error' -
type 스텝의 타입 'default' | 'arrow' | 'dot' | 'navigation' default
className 추가 css 클래스 string | string[] -
style 추가 스타일 CSSProperties -
customDot 스텝을 커스터마이즈해요. arrow 타입은 지원하지 않아요 (IconDot: ReactNode, stepConfig: CustomDotRecord) => ReactNode -
onChange 스텝을 클릭했을 때 호출되는 콜백이에요. 이 props를 설정하면 클릭할 때 스텝 바가 전환돼요 (current: number, id: any) => void -

Steps.Step

속성 설명 타입 기본값 버전
disabled 클릭 이벤트를 비활성화해요 boolean - -
status 단계의 상태 'wait' | 'process' | 'finish' | 'error' - -
description 단계의 설명 string | ReactNode - -
title 단계의 제목 string | ReactNode - -
className 추가 css 클래스 string | string[] - 2.11.0
id 노드의 ID를 지정해요. onChange 콜백에서 파라미터로 쓰여요 any - -
style 추가 css 스타일 CSSProperties - 2.11.0
onClick 항목을 클릭했을 때 호출되는 콜백 (index: number, id: any, e) => void - e in 2.40.0

CustomDotRecord

export type CustomDotRecord = {
  index: number;
  status: string;
  title: ReactNode;
  description: ReactNode;
};

더 알아보기 (Learn more)

Steps 컴포넌트의 더 자세한 내용은 Arco Design 공식 문서에서 확인할 수 있어요.