Timeline

수직 표시 타임라인. 연대기적 이벤트나 일련의 단계를 시각적으로 표시하는 데 사용됩니다.

Timeline

  • 2024-09-01
    Create a services site
    Network problems being solved
  • 2024-09-02
    Solve initial network problems
    Technical testing
  • 2024-09-05
    Technical testing
    Network problems being solved

Timeline

TimelineItems는 다양한 크기(sm, md, lg), 사용자 지정 아이콘(icon 속성을 통해) 및 상태(default, primary, success, error, warning, process)를 지원합니다.

  • 09:00 AM
    Account created
    Welcome to the platform.
  • 09:30 AM
    Profile updated
    User updated their avatar.
  • 10:15 AM
    Payment failed
    Transaction declined by the bank.
  • 10:20 AM
    Retrying payment...
    Waiting for user to update payment method.
  • Processing
    System is processing the new request.
astro
---
import Timeline from '@/components/data-display/Timeline.astro';
import TimelineItem from '@/components/data-display/TimelineItem.astro';
---

<Timeline>
    <TimelineItem title="Account created" time="09:00 AM" status="success" size="lg" icon="Check">
        Welcome to the platform.
    </TimelineItem>
    <TimelineItem title="Profile updated" time="09:30 AM" status="primary" size="md" icon="User">
        User updated their avatar.
    </TimelineItem>
    <TimelineItem title="Payment failed" time="10:15 AM" status="error" size="md" icon="X">
        Transaction declined by the bank.
    </TimelineItem>
    <TimelineItem title="Retrying payment..." time="10:20 AM" status="warning" size="md" icon="TriangleAlert">
        Waiting for user to update payment method.
    </TimelineItem>
    <TimelineItem title="Processing" status="process">
        System is processing the new request.
    </TimelineItem>
</Timeline>

Timeline

본문용 기본 슬롯이나 타임라인 노드 자체를 위한 dot 슬롯을 사용하여 타임라인 항목의 콘텐츠를 완전히 사용자 지정할 수 있습니다.

  • 1 week ago
    Release v1.2.0
    • Added Timeline component
    • Improved contrast in dark mode
    • Fixed modal positioning
  • 2 weeks ago
    Code Review

    Pending review from @johndoe

API 참조

Timeline

속성
설명
타입
기본값

align

타임라인 정렬 'left' | 'right' | 'alternate' 'left'

TimelineItem

속성
설명
타입
기본값

status

타임라인 노드의 시각적 상태/색상 'default' | 'primary' | 'success' | 'error' | 'process' | 'warning' 'default'

size

타임라인 노드의 크기 'sm' | 'md' | 'lg' 'sm'

title

Timeline string '-'

time

시간 또는 날짜 텍스트 string '-'

icon

노드 내부에 표시할 아이콘의 이름 IconName '-'