Steps
작업 단계를 통해 사용자를 안내하는 탐색 모음입니다.
언제 사용해야 할까요
- 주어진 작업이 복잡하거나 일련의 하위 작업에 특정 순서가 있는 경우 작업을 더 쉽게 만들기 위해 여러 단계로 분해할 수 있습니다.
사용 예
완료 이것은 설명입니다.
진행 중 이것은 설명입니다.
대기 중 이것은 설명입니다.
astro
---
import Steps from '@/components/navigation/Steps.astro';
import Step from '@/components/navigation/Step.astro';
---
<Steps current={1}>
<Step title="Finished" description="This is a description." />
<Step title="In Progress" description="This is a description." />
<Step title="Waiting" description="This is a description." />
</Steps> 수직 방향
단계는 `orientation="vertical"` 속성을 사용하여 수직으로 렌더링할 수도 있습니다.
완료 이것은 설명입니다.
진행 중 이것은 설명입니다.
대기 중 이것은 설명입니다.
astro
<Steps current={1} orientation="vertical">
<Step title="Finished" description="This is a description." />
<Step title="In Progress" description="This is a description." />
<Step title="Waiting" description="This is a description." />
</Steps> API Reference
Steps
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| current | The current step, starting from 0. | number | 0 |
| orientation | The orientation of the steps layout. | 'horizontal' | 'vertical' | 'horizontal' |
| class | Additional CSS classes to apply to the Steps container. | string | - |
Step
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| title | The main title of the step. | string | - |
| description | Additional detailed description of the step. | string | - |
| status | Explicit status of the step. Normally inferred from the `current` prop on the parent `<Steps>`. | 'wait' | 'process' | 'finish' | 'error' | - |
| class | Additional CSS classes for custom styling. | string | - |