← All Components
<mth-timeline>
Chronological timeline container coordinating declarative <mth-timeline-item> children or imperative .items arrays via SlotCollectionController.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-timeline>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/timeline"></script>
<mth-timeline orientation="vertical" align="start">Example</mth-timeline>import '@methane-ui/ui/timeline';
import '@methane-ui/react';
export function Example() {
return <mth-timeline orientation="vertical" align="start">Example</mth-timeline>;
}<script setup lang="ts">
import '@methane-ui/ui/timeline';
</script>
<template>
<mth-timeline orientation="vertical" align="start">Example</mth-timeline>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/timeline';
import { MthTimelineDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthTimelineDirective],
template: `<mth-timeline orientation="vertical" align="start">Example</mth-timeline>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/timeline';
import MthTimeline from '@methane-ui/svelte/MthTimeline.svelte';
</script>
<MthTimeline orientation="vertical" align="start">Example</MthTimeline>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
orientation | orientation | 'vertical' | 'horizontal' | "vertical" | Axis of timeline layout (vertical or horizontal). |
align | align | 'start' | 'alternate' | 'end' | "start" | Horizontal alignment mode (start, alternate, or end). |
items | — | ReadonlyArray<unknown> | null | null | Optional imperative timeline entries when not using slotted <mth-timeline-item> elements. |
label | label | string | "" | Accessible label for the timeline list. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none" with host role="list". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(horizontal). | Conformance suite |
| i18n | Routes 2 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |