Skip to the content
Konstruktor UI

Surfaces and display

Timeline

Events in order, each with its time, a title and a few words. ol.kui-timeline draws a dot per event and a line between them; a tone colours the dot.

CSS only

Examples

The history of a case

  1. Tužba podneta

    Filed with the Osnovni sud u Novom Sadu, case number P-1423/2026.

  2. Reply received

    The defendant disputes the amount of the damage.

  3. Hearing postponed

    The expert witness did not appear.

  4. Next hearing

    Room 14. Bring the original invoices.

HTML
<ol class="kui-timeline">
  <li data-tone="ok"><time class="kui-timeline__time" datetime="2026-03-03">3 March 2026</time><p class="kui-timeline__title">Tužba podneta</p><p class="kui-timeline__body">Filed with the Osnovni sud u Novom Sadu, case number P-1423/2026.</p></li>
  <li><time class="kui-timeline__time" datetime="2026-04-02">2 April 2026</time><p class="kui-timeline__title">Reply received</p><p class="kui-timeline__body">The defendant disputes the amount of the damage.</p></li>
  <li data-tone="danger"><time class="kui-timeline__time" datetime="2026-06-18">18 June 2026</time><p class="kui-timeline__title">Hearing postponed</p><p class="kui-timeline__body">The expert witness did not appear.</p></li>
  <li aria-current="step"><time class="kui-timeline__time" datetime="2026-12-12T10:30">12 December 2026, 10:30</time><p class="kui-timeline__title">Next hearing</p><p class="kui-timeline__body">Room 14. Bring the original invoices.</p></li>
</ol>

States

Every state

Default: an outlined dot. data-tone="ok", "danger" and "accent" fill it; the title says what happened, so the colour is not the only sign. The current or next event has aria-current and a ring. A long body wraps under its title.

  1. Default

    An event

  2. Accent

    Agent prepared a draft

  3. OK

    Paid

  4. Danger

    Payment failed

  5. Current

    Waiting for the court

    Die Zustellungsbevollmächtigtenbenennung muss innerhalb von vierzehn Tagen nach Zugang des Schreibens erfolgen.

HTML
<ol class="kui-timeline">
  <li><span class="kui-timeline__time">Default</span><p class="kui-timeline__title">An event</p></li>
  <li data-tone="accent"><span class="kui-timeline__time">Accent</span><p class="kui-timeline__title">Agent prepared a draft</p></li>
  <li data-tone="ok"><span class="kui-timeline__time">OK</span><p class="kui-timeline__title">Paid</p></li>
  <li data-tone="danger"><span class="kui-timeline__time">Danger</span><p class="kui-timeline__title">Payment failed</p></li>
  <li aria-current="step"><span class="kui-timeline__time">Current</span><p class="kui-timeline__title">Waiting for the court</p><p class="kui-timeline__body">Die Zustellungsbevollmächtigtenbenennung muss innerhalb von vierzehn Tagen nach Zugang des Schreibens erfolgen.</p></li>
</ol>

Classes and attributes

ol.kui-timeline
The list of events, oldest first (or newest first, but the same everywhere).
li
One event. data-tone="ok|danger|accent" colours the dot; aria-current marks the current one.
.kui-timeline__time
The time, a <time> with datetime.
.kui-timeline__title, .kui-timeline__body
What happened, and a few words more.

Accessibility

  • An ordered list says how many events there are and where each stands.
  • Use <time datetime> so the date can be read by machines too.
  • The dot colour is decoration; the title says the outcome.

Do and do not

Do

  • Keep the order the same on every screen.
  • Write the title as what happened, in the past tense.
  • Show the next event too, marked as current.

Do not

  • Do not use a timeline for steps a person must do; use the guide or the stepper.
  • Do not mix dates and relative times (“2 days ago”) in one list.
  • Do not put long documents in the body.