컴포넌트로 돌아가기
상태 표시기, 아이콘, 다양한 정렬 옵션을 갖춘 시간순 이벤트 표시용 타임라인 컴포넌트입니다.
설치
Import
고급/Pro 컴포넌트는 @hua-labs/ui/advanced에서 제공됩니다.
UI 컴포넌트, 모션 훅, i18n을 하나의 패키지로 사용할 수 있습니다.
Pro 컴포넌트입니다. Pro 라이선스가 필요합니다.
라이브 데모
Pro
기본 사용법
- 완료
Initial project setup and planning phase completed
- 진행 중
Core features implementation in progress
- 대기
Quality assurance and bug fixes
- 대기
Production deployment
상태 예시
- 완료
This task is done
- 진행 중
Working on this now
- 대기
Not started yet
- 오류
Something went wrong
- 경고
Needs attention
- 정보
For your information
정렬 옵션
align="left"
- 완료
- 진행 중
- 대기
align="alternate"
- 완료
- 진행 중
- 대기
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
items* | TimelineItem[] | - | Array of timeline items |
orientation | "vertical" | "horizontal" | "vertical" | Timeline orientation |
align | "left" | "right" | "alternate" | "left" | Item alignment |
size | "sm" | "md" | "lg" | "md" | Timeline size |
showConnector | boolean | true | Show connector line between items |
highlightedId | string | - | ID of highlighted item |
locale | string | "ko-KR" | Locale for date formatting |
emptyState | React.ReactNode | - | Custom empty state |
TimelineItem
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
id* | string | - | Unique identifier |
title* | string | - | Item title |
description | string | - | Item description |
date | string | Date | - | Item date |
icon | IconName | React.ReactNode | - | Item icon |
status | "pending" | "active" | "completed" | "error" | "warning" | "info" | "pending" | Item status |
meta | string | - | Additional meta information |
content | React.ReactNode | - | Custom content |
코드 예시
접근성
- •:
- •: