Timeline
Events in time order, each with a date, a heading and details.
Example
<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>import { Timeline } from '@focsd-dev/react';
export function Example() { return <Timeline>…</Timeline>;}<script setup>import '@focsd-dev/components/focsd-timeline.js';</script>
<template> <focsd-timeline>…</focsd-timeline></template>// Add CUSTOM_ELEMENTS_SCHEMA to the component's schemas, then:import '@focsd-dev/components/focsd-timeline.js';
// template<focsd-timeline>…</focsd-timeline><script> import '@focsd-dev/components/focsd-timeline.js';</script>
<focsd-timeline>…</focsd-timeline>API
Slots
| Slot | Description |
|---|---|
(default) | Default content. |
CSS parts
Style the inside of the component with ::part(), for example focsd-timeline::part(list).
| Part | Description |
|---|---|
list | The list element. |
Accessibility
- A list of items, each with a machine-readable
<time datetime>and its heading text. Markers are decorative.
Ask the docs
Hi, what are you building?
Ask about any component, theming, forms or frameworks. I answer with the right component, a snippet and a link to its docs.