Installation
bash
npx axis-cli add run-progress --agenticInteractive Demo
대기 중
0%1
입력 분석
사용자 입력을 분석합니다
2
컨텍스트 검색
관련 정보를 검색합니다
3
응답 생성
AI 응답을 생성합니다
Usage
tsx
import { RunProgress } from '@axis-ds/agentic-ui'
const steps = [
{ id: '1', label: '데이터 분석', status: 'complete' },
{ id: '2', label: '모델 선택', status: 'running', description: '최적의 모델을 선택하는 중...' },
{ id: '3', label: '결과 생성', status: 'pending' },
]
export function Example() {
return (
<RunProgress
status="running"
steps={steps}
currentStep={1}
onCancel={() => console.log('취소')}
/>
)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
statusRequired | "idle" | "running" | "complete" | "error" | - | 전체 실행 상태 |
stepsRequired | Step[] | - | 단계 목록 배열 |
currentStep | number | - | 현재 진행 중인 단계 인덱스 |
onCancel | () => void | - | 취소 버튼 클릭 시 콜백 |
onRetry | () => void | - | 재시도 버튼 클릭 시 콜백 |
className | string | - | 추가 CSS 클래스 |
statusRequiredType:
"idle" | "running" | "complete" | "error"전체 실행 상태
stepsRequiredType:
Step[]단계 목록 배열
currentStepType:
numberDefault:
-현재 진행 중인 단계 인덱스
onCancelType:
() => voidDefault:
-취소 버튼 클릭 시 콜백
onRetryType:
() => voidDefault:
-재시도 버튼 클릭 시 콜백
classNameType:
stringDefault:
-추가 CSS 클래스
Step Type
| Prop | Type | Default | Description |
|---|---|---|---|
idRequired | string | - | 단계 고유 식별자 |
labelRequired | string | - | 단계 이름 |
statusRequired | "pending" | "running" | "complete" | "error" | - | 단계 상태 |
description | string | - | 단계 설명 |
idRequiredType:
string단계 고유 식별자
labelRequiredType:
string단계 이름
statusRequiredType:
"pending" | "running" | "complete" | "error"단계 상태
descriptionType:
stringDefault:
-단계 설명