Skip to content
Focsd homeFocsd homeFocsd
Forms

Timeline

Events in time order, each with a date, a heading and details.

  • Tag: focsd-timeline
  • Pattern: Ordered list
  • Category: Display

Example

Amara created Atlas. Payment received.
HTML
<focsd-timeline>
<focsd-timeline-item datetime="2026-10-01" heading="Project created"
>Amara created Atlas.</focsd-timeline-item
>
<focsd-timeline-item datetime="2026-10-03" heading="Invoice paid" tone="positive"
>Payment received.</focsd-timeline-item
>
</focsd-timeline>

Usage

Import the module once, then use the tag like any HTML element. Every framework below renders the same element; see Frameworks for setup.

<script type="module">
import '@focsd-dev/components/focsd-timeline.js';
</script>
<focsd-timeline>…</focsd-timeline>

API

Slots

SlotDescription
(default)Default content.

CSS parts

Style the inside of the component with ::part(), for example focsd-timeline::part(list).

PartDescription
listThe list element.

Accessibility

  • A list of items, each with a machine-readable <time datetime> and its heading text. Markers are decorative.