bash
npm install @hua-labs/huatsx
import { Timeline } from "@hua-labs/ui/advanced";Pro
- Project Started완료
Initial project setup and planning phase completed
- Development Phase진행 중
Core features implementation in progress
- Testing대기
Quality assurance and bug fixes
- Launch대기
Production deployment
- Completed Task완료
This task is done
- Active Task진행 중
Working on this now
- Pending Task대기
Not started yet
- Error Task오류
Something went wrong
- Warning경고
Needs attention
- Info정보
For your information
align="left"
- Step 1완료
- Step 2진행 중
- Step 3대기
align="alternate"
- Step 1완료
- Step 2진행 중
- Step 3대기
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
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 |
docs:common.basicUsagetsx
1import { Timeline } from '@hua-labs/ui/advanced';2 3const items = [4 {5 id: "1",6 title: "시작",7 description: "프로젝트 시작",8 date: "2024-01-01",9 status: "completed",10 },11 {12 id: "2",13 title: "진행 중",14 description: "개발 진행",15 date: "2024-01-15",16 status: "active",17 },18 {19 id: "3",20 title: "완료 예정",21 description: "배포 예정",22 date: "2024-02-01",23 status: "pending",24 },25];26 27<Timeline items={items} />docs:components.timeline.examples.withIconstsx
1import { Timeline } from '@hua-labs/ui/advanced';2import { CheckCircle, Clock, Rocket } from "@phosphor-icons/react";3 4const items = [5 {6 id: "1",7 title: "Launched",8 icon: <Rocket weight="fill" />,9 status: "completed",10 },11 {12 id: "2",13 title: "In Progress",14 icon: <Clock weight="fill" />,15 status: "active",16 },17];18 19<Timeline items={items} />docs:components.timeline.examples.alternatetsx
1<Timeline2 items={items}3 align="alternate"4 size="lg"5/>- •docs:components.timeline.accessibility.semanticHtml: docs:components.timeline.accessibility.semanticHtmlDesc
- •docs:components.timeline.accessibility.statusColors: docs:components.timeline.accessibility.statusColorsDesc