Skip to content
Design System
GitHub

Timeline

v0.17.4

Events in time order with neutral markers, status glyphs or icons; vertical, alternate or horizontal, grouped by day.

API reference

Generated from the types. Every part also takes className.

Timeline

Also takes every prop of <ol>.

orientation
"vertical" | "horizontal" = "vertical"
align
"start" | "alternate" = "start"alternate puts time on one side and content on the other (vertical, wide screens only).
size
"sm" | "default"sm: less space between events, for a long history.
density
"default" | "dense"

TimelineItem

Also takes every prop of <li> (except title).

time
ReactNodeShown as written ("09:41", "Yesterday").
dateTime
stringMachine-readable time for the <time> element.
tone
"info" | "success" | "warning" | "danger" | "neutral"A status, drawn as its glyph. Leave empty for an ordinary event.
icon
ReactNodeAn icon instead of a dot, e.g. for kinds of event.
titlerequired
ReactNode

Other parts

  • TimelineHeading takes every prop of <li>.