DS0
Components

Timeline

Displays a chronological sequence of events along a vertical or horizontal line.

Overview

Timeline renders a list of events along a line with timestamps, icons, and content. Supports vertical and horizontal orientations and custom dot indicators.

Usage

<Timeline>
  <Timeline.Item icon={<Check />} date="Jan 2024">
    <Timeline.Title>Project Started</Timeline.Title>
    <Timeline.Description>Initial commit and setup.</Timeline.Description>
  </Timeline.Item>
  <Timeline.Item icon={<Star />} date="Mar 2024">
    <Timeline.Title>v1.0 Released</Timeline.Title>
    <Timeline.Description>First public release.</Timeline.Description>
  </Timeline.Item>
</Timeline>

API Reference

PropTypeDefaultDescription
orientation'vertical' | 'horizontal''vertical'Layout direction
childrenReactNodeTimeline items

Timeline.Item Props

PropTypeDefaultDescription
iconReactNodeDotCustom indicator
datestringDate/time label
ComponentWhen to Use Instead
StepperSequential process steps
ChangelogVersion-based timeline

On this page