• Docs
  • Components
  • Timeline

Timeline - Aspect UI

The Timeline component visually represents a sequence of events or steps in chronological order. It supports custom icons, labels, vertical/horizontal layout, and animations.

Table of Contents#

Timeline Props#


PropTypeDefaultDescription
childrenReact.ReactNode-Timeline content elements to be displayed.
positionleft right mixed'left'Position of the timeline items. `mixed` alternates positions.
classNamestring-Additional CSS class for the timeline container.
lineClassNamestring-Additional CSS class for the timeline line element.
lineStylesolid dashed'solid'The style of the connecting line between timeline items.
...restReact.HTMLAttributes<HTMLDivElement>-Additional props passed to the timeline container element.

TimelineItem Props#


PropTypeDefaultDescription
childrenReact.ReactNode-Content for the timeline item.
positionleft right'left'The side where the timeline item is displayed.
isMixedbooleanfalseIndicates if the timeline item is part of a mixed-position timeline.
iconReact.ReactNode-Optional icon to display in the timeline dot.
classNamestring''Additional CSS class for the timeline item element.
containerClassNamestring''Additional CSS class for the item’s container.
dotClassNamestring''Additional CSS class for the timeline dot element.
...restReact.HTMLAttributes<HTMLDivElement>-Additional props passed to the timeline item container.