진행 추적기
진행 추적기 (Progress Tracker)
진행 추적기 컴포넌트는 다단계 프로세스에서의 진행 상황을 추적하는 컴포넌트예요.
출처: 문서
본문
ProgressTracker 컴포넌트
다단계 프로세스에서의 진행 상황을 추적하는 컴포넌트예요.
- Keywords: progress, tracker, steps, completion, workflow
- Categories: feedback
- Status: general-availability
예시
import { ProgressTracker } from '@atlaskit/progress-tracker';
const Example = (): React.JSX.Element => (
<ProgressTracker
items={[
{ id: 'step1', label: 'Step 1', status: 'visited', percentageComplete: 100 },
{ id: 'step2', label: 'Step 2', status: 'current', percentageComplete: 40 },
{ id: 'step3', label: 'Step 3', status: 'disabled', percentageComplete: 0 },
{ id: 'step4', label: 'Step 4', status: 'unvisited', percentageComplete: 0 },
]}
/>
);
export default Example;
Props
| Prop | Type | Description |
|---|---|---|
animated |
boolean |
Turns off transition animations if set to false |
items |
Stage[] |
Ordered list of stage data (required) |
label |
string |
Use this to provide an aria-label for the overall progress tracker, so that people who use assistive technology get an overview of the tracker's purpose |
spacing |
"compact" | "cozy" | "comfortable" |
Sets the amount of spacing between the steps |
사용 지침
- 다단계 워크플로에 사용해요
- 명확한 진행 추적을 제공해요
- 진행 업데이트를 적절히 처리해요
- 진행 완료 상태를 고려해요
콘텐츠 지침
- 명확하고 설명적인 단계 라벨을 사용해요
- 의미 있는 진행 설명을 제공해요
- 적절한 진행 용어를 사용해요
- 진행 정보를 간결하게 유지해요
접근성 지침
- 진행 상황이 스크린 리더에 알려지도록 해요
- 적절한 진행 표시기를 사용해요
- 명확한 진행 맥락을 제공해요
- 진행 타이밍과 업데이트를 고려해요