Timeline

Vertical sequence of events with connecting line + dot markers.

  1. Jason pushed 3 commits to main.
  2. CI passed on #234.
  3. Merged Add Timeline component.
  4. Released v0.2.0.

Usage

import {Timeline} from 'kinu';

<Timeline>
  <Timeline.Entry>
    Jason pushed 3 commits
    <time>2h ago</time>
  </Timeline.Entry>
</Timeline>

Exports

Name Description Rendered HTML
Timeline Timeline container
Timeline.Entry Timeline event <li k="timeline-entry">

Notes

  • Renders as <ol> + <li> so activity feeds and audit logs stay semantic.
  • Dot and connector line are both drawn on each entry from one --k-timeline-x variable (the dot radius), so they can't drift out of alignment.
  • Drop a native <time> element inside an entry for the trailing timestamp — add dateTime="..." for machine-readable semantics.

_Source: src/components/timeline/index.tsx