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 '-'