Methane@methane-ui/*
CSS LayoutsComponentsSkillsTheme BuilderGitHub
← All Components

<mth-timeline>

@methane-ui/ui~7.9 KB brotli (cold + Lit)~2.0 KB marginal

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

Interactive StageLive Custom Element · <mth-timeline> (@methane-ui/ui)
BehaviorSpec and CEM metadata validated.121 cross-browser tests passing.35 public packages published with provenance.
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>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
orientationorientation'vertical' | 'horizontal'"vertical"Axis of timeline layout (vertical or horizontal).
alignalign'start' | 'alternate' | 'end'"start"Horizontal alignment mode (start, alternate, or end).
items—ReadonlyArray<unknown> | nullnullOptional imperative timeline entries when not using slotted <mth-timeline-item> elements.
labellabelstring""Accessible label for the timeline list.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none" with host role="list".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
statesExposes ElementInternals CustomStateSet flags: :state(horizontal).Conformance suite
i18nRoutes 2 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test