Timeline

DaisyUI

Timeline component shows a list of events in chronological order.

Add <hr /> inside each item to display connector lines between events.
Basic Timeline
  • 1984
    First Macintosh computer


  • 1998
    iMac


  • 2001
    iPod


  • 2007
    iPhone


  • 2015
    Apple Watch
Vertical

Explicit vertical direction.

  • 1984
    First Macintosh computer


  • 1998
    iMac


  • 2001
    iPod

Snap Icon

Snaps the icon to the start instead of middle.

  • 1984
    First Macintosh computer


  • 1998
    iMac


  • 2001
    iPod

Bottom Side Only

Content only on the bottom/end side.

  • First Macintosh computer


  • iMac


  • iPod

Top Side Only

Content only on the top/start side.

  • First Macintosh computer


  • iMac


  • iPod

Compact

Forces all items on one side.

  • 1984
    First Macintosh computer


  • 1998
    iMac


  • 2001
    iPod

Horizontal

Horizontal layout.

  • Start
    End


  • Start
    End


  • Start
    End
Code Example
use rsxui::components::{Timeline, TimelineItem, TimelineStart, TimelineMiddle, TimelineEnd};
use rsx_macros::rsx;
let html = rsx! {
    <Timeline>
        <TimelineItem>
            <TimelineStart>"1984"</TimelineStart>
            <TimelineMiddle>"●"</TimelineMiddle>
            <TimelineEnd class="timeline-box">"First Mac"</TimelineEnd>
            <hr />
        </TimelineItem>
    </Timeline>
};