진행률 표시줄
진행률 표시줄 (Progress Bar)
진행률 표시줄은 시스템 프로세스의 상태를 전달하는 컴포넌트예요. 완료율을 백분율로 보여주거나, 기간을 알 수 없는 진행 상태(indeterminate)를 표시해요.
출처: 문서
본문
ProgressBar 컴포넌트
진행률 표시줄은 시스템 프로세스의 상태를 전달하며, 완료율이나 indeterminate 진행 상태를 보여줘요.
- Keywords: progress, bar, loading, status, completion, indeterminate
- Categories: loading
- Status: general-availability
예시
import ProgressBar from '@atlaskit/progress-bar/progress-bar';
const Examples = (): React.JSX.Element => (
<>
<ProgressBar value={0.5} />
<ProgressBar value={0.8} appearance="success" />
</>
);
export default Examples;
Props
| Prop | Type | Description |
|---|---|---|
appearance |
"default" | "success" | "inverse" |
The visual style of the progress bar |
ariaLabel |
string |
This is the descriptive label that's associated with the progress bar |
isIndeterminate |
boolean |
Shows the progress bar in an indeterminate state when true |
value |
number |
Sets the value of the progress bar, between 0 and 1 inclusive |
사용 지침
- 기간을 알 수 있는 진행 상황을 표시할 때 사용해요
- 명확한 진행 표시를 제공해요
- 기간을 알 수 없는 경우 indeterminate 상태를 사용해요
- 활성 상태일 때 진행률 표시줄을 눈에 띄게 배치해요
- 백분율이나 예상 시간을 제공하는 것을 고려해요
콘텐츠 지침
- 명확하고 설명적인 진행 메시지를 사용해요
- 진행 상황에 의미 있는 맥락을 제공해요
- 남은 예상 시간을 표시하는 것을 고려해요
- 일관된 진행 용어를 사용해요
접근성 지침
- 진행률 표시줄에 적절한 ARIA 라벨을 제공해요
- 진행 변화를 스크린 리더에 알려줘요
- 가시성을 위해 적절한 색 대비를 사용해요
- 진행 상태에 대체 텍스트를 제공해요
SuccessProgressBar 컴포넌트
프로세스의 성공적인 완료를 나타내는 진행률 표시줄 변형이에요.
- Keywords: progress, bar, success, complete, finished
- Categories: loading
- Status: general-availability
예시
import { SuccessProgressBar } from '@atlaskit/progress-bar/success-progress-bar';
const Examples = (): React.JSX.Element => (
<>
<SuccessProgressBar value={1.0} />
<SuccessProgressBar value={0.9} />
</>
);
export default Examples;
Props
| Prop | Type | Description |
|---|---|---|
ariaLabel |
string |
This is the descriptive label that's associated with the progress bar |
isIndeterminate |
boolean |
Shows the progress bar in an indeterminate state when true |
value |
number |
Sets the value of the progress bar, between 0 and 1 inclusive |
사용 지침
- 성공적인 완료를 나타낼 때 사용해요
- 다음 상태로 전환하기 전에 잠깐만 보여줘요
- 적절한 성공 스타일을 사용해요
- 성공 메시지 제공을 고려해요
콘텐츠 지침
- 명확한 성공 메시지를 사용해요
- 무엇이 성공적으로 완료됐는지 나타내요
- 해당되면 다음 단계를 제공해요
TransparentProgressBar 컴포넌트
오버레이 맥락을 위해 투명한 배경을 가진 진행률 표시줄 변형이에요.
- Keywords: progress, bar, transparent, overlay, subtle
- Categories: loading
- Status: general-availability
예시
import { TransparentProgressBar } from '@atlaskit/progress-bar/transparent-progress-bar';
const Examples = (): React.JSX.Element => (
<>
<TransparentProgressBar value={0.6} />
<TransparentProgressBar value={0.3} />
</>
);
export default Examples;
Props
| Prop | Type | Description |
|---|---|---|
ariaLabel |
string |
This is the descriptive label that's associated with the progress bar |
isIndeterminate |
boolean |
Shows the progress bar in an indeterminate state when true |
value |
number |
Sets the value of the progress bar, between 0 and 1 inclusive |
사용 지침
- 오버레이나 모달 맥락에서 사용해요
- 배경과의 충분한 대비를 보장해요
- 미묘한 진행 표시에 사용해요
- 배경의 가시성을 고려해요
콘텐츠 지침
- 진행이 배경에서 보이도록 해요
- 가독성을 위해 적절한 대비를 사용해요
- 진행 표시를 명확하게 유지해요