Components

The Timeline components include the following:

  • Timeline - The root wrapper. Its props control layout and appearance.
  • TimelineItem - Represents an event or step in the timeline.
  • TimelineStart - Wrapper for the timeline start label.
  • TimelineMiddle - Wrapper for the timeline icon or marker.
  • TimelineEnd - Wrapper for the timeline end label.
  • TimelineLine - Horizontal or vertical line between timeline items, with color options.

Timeline

The Timeline component is the root wrapper. Its props control the layout, orientation, compactness, and icon snapping.

TimelineItem

The TimelineItem component represents a single event or step in the timeline. It provides named slots for start, middle, end, and optional horizontal rules.

TimelineStart

The TimelineStart component wraps the start label (often a date or step name) and supports boxed styling.

TimelineMiddle

The TimelineMiddle component wraps the icon or marker for the timeline item.

TimelineEnd

The TimelineEnd component wraps the end label (often a description or event name) and supports boxed styling.

TimelineLine

The TimelineLine component renders an <hr> between timeline items. It supports semantic color props or a color prop for customizing the line color.