--- title: Timeline desc: Timeline component shows a list of events in chronological order. source: https://raw.githubusercontent.com/saadeghi/daisyui/refs/heads/master/packages/daisyui/src/components/timeline.css layout: components classnames: component: - class: timeline desc: Timeline container part: - class: timeline-start desc: The content inside
  • that will be at the start direction - class: timeline-middle desc: The content inside
  • that will be at the middle - class: timeline-end desc: The content inside
  • that will be at the end direction modifier: - class: timeline-snap-icon desc: snaps the icon to the start instead of middle - class: timeline-box desc: Applies a box style to timeline-start or timeline-end - class: timeline-compact desc: forces all items on one side direction: - class: timeline-horizontal desc: horizontal layout (default) - class: timeline-vertical desc: vertical layout --- > :INFO: > > The `hr` tag at the beginning or end of each item, displays a line to connect items. ### ~Timeline with text on both sides and icon ```html ``` ### ~Timeline with bottom side only ```html ``` ### ~Timeline with top side only ```html ``` ### ~Timeline with different sides ```html ``` ### ~Timeline with colorful lines ```html ``` ### ~Timeline without icons ```html ``` ### ~Vertical timeline with text on both sides and icon ```html ``` ### ~Vertical timeline with right side only ```html ``` ### ~Vertical timeline with left side only ```html ``` ### ~Vertical timeline with different sides ```html ``` ### ~Vertical timeline with colorful lines ```html ``` ### ~Vertical timeline without icons ```html ``` ### ~Responsive: vertical by default, horizontal on large screen ```html ``` ### ~Timeline with icon snapped to the start ```html ```