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

@atlaskit/progress-indicator — 진행 표시기

원문 보기 위키 갱신

단계 또는 완료 상태를 통해 진행 상황을 표시하는 컴포넌트예요. 단계별 프로세스에서 현재 위치를 보여줄 때 사용해요.

출처: 문서

본문

ProgressIndicator component

단계 또는 완료 상태를 통해 진행 상황을 표시하는 컴포넌트예요.

  • 키워드: progress, indicator, steps, completion, status
  • 카테고리: feedback
  • 상태: general-availability

예시

import { ProgressIndicator } from '@atlaskit/progress-indicator';
const Examples = (): React.JSX.Element => (
	<>
		<ProgressIndicator selectedIndex={1} values={['Step 1', 'Step 2', 'Step 3']} />
		<ProgressIndicator selectedIndex={2} values={['Start', 'In Progress', 'Complete']} />
	</>
);
export default Examples;

Props

Prop Type Description
appearance "default" | "primary" | "help" | "inverted" Sets the color of the indicators
ariaControls string If interaction is enabled, use ariaControls to tell assistive technology what elements are controlled by the progress indicator
ariaLabel string Describes what the indicator represents to assistive technology
getAriaLabel (index: number) => string Returns the accessible label for each selectable indicator
onSelect (eventData: { event: React.MouseEvent<HTMLButtonElement, MouseEvent>; index: number; }, analyticsEvent: UIAnalyticsEvent) => void Function called when an indicator is selected
selectedIndex number Which indicator is currently selected (required)
size "large" | "default" Sets the width and height of each indicator
spacing "compact" | "cozy" | "comfortable" Specifies how much of a gutter there is between indicators
values any[] An array of values mapped over to create the indicators (required)

사용 지침

  • 단계별 프로세스에 사용해요
  • 명확한 진행 표시를 제공해요
  • 진행 상황 업데이트를 적절히 처리해요
  • 진행 완료 상태를 고려해요

콘텐츠 지침

  • 명확하고 설명적인 단계 라벨을 사용해요
  • 의미 있는 진행 설명을 제공해요
  • 적절한 진행 용어를 사용해요
  • 진행 정보를 간결하게 유지해요

접근성 지침

  • 진행 상황이 스크린 리더에 안내되도록 해요
  • 적절한 진행 표시를 사용해요
  • 명확한 진행 맥락을 제공해요
  • 진행 타이밍과 업데이트를 고려해요

더 알아보기 (Learn more)