Skip to content

Timeline

The bq-timeline component lists events in order along a connecting line — activity feeds, audit logs, release histories.

Basic Usage

html
<bq-timeline>
  <bq-timeline-item headline="Order placed" timestamp="Mar 1" datetime="2026-03-01">
    Payment authorized.
  </bq-timeline-item>
  <bq-timeline-item headline="Shipped" timestamp="Mar 3" datetime="2026-03-03" variant="info">
    Left the warehouse.
  </bq-timeline-item>
  <bq-timeline-item headline="Delivered" timestamp="Mar 5" datetime="2026-03-05" variant="success" last>
    Signed for by A. Berger.
  </bq-timeline-item>
</bq-timeline>

Mark the final entry with last to drop its trailing connector.

Variants

The marker colour communicates the kind of event:

html
<bq-timeline-item variant="primary" headline="Created"></bq-timeline-item>
<bq-timeline-item variant="success" headline="Approved"></bq-timeline-item>
<bq-timeline-item variant="warning" headline="Needs review"></bq-timeline-item>
<bq-timeline-item variant="danger"  headline="Rejected"></bq-timeline-item>
<bq-timeline-item variant="info"    headline="Commented"></bq-timeline-item>
<bq-timeline-item variant="neutral" headline="Archived"></bq-timeline-item>

Compact Spacing

html
<bq-timeline variant="compact">…</bq-timeline>

Custom Markers

html
<bq-timeline-item headline="Deployed">
  <span slot="marker">🚀</span>
  Release 1.15.0 is live.
</bq-timeline-item>

Properties

bq-timeline

PropertyTypeDefaultDescription
variantstring'default'default | compact
alignstring'start'start | alternate
labelstring''Accessible label for the list

bq-timeline-item

PropertyTypeDefaultDescription
variantstring'primary'primary | success | danger | warning | info | neutral
headlinestring''Item title
timestampstring''Human-readable timestamp
datetimestring''Machine-readable value for the <time> element
lastbooleanfalseHide the trailing connector

Slots

SlotElementDescription
(default)bq-timelinebq-timeline-item elements
(default)bq-timeline-itemItem body
markerbq-timeline-itemCustom marker content

CSS Parts

PartDescription
timelineThe <ol> container
itemAn individual <li>
markerThe event marker
connectorThe line below the marker
contentItem content wrapper
headlineItem title
timestampThe <time> element
bodyItem body wrapper

Accessibility

  • The timeline renders a real <ol> and each item an <li>, so order and item count are announced.
  • Set datetime alongside timestamp to expose a machine-readable date on the <time> element.
  • Marker colour is decorative: keep the meaning of an event in its headline or body text.

Released under the MIT License.