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

<mth-timeline-item>

@methane-ui/ui~6.8 KB brotli (cold + Lit)~1.4 KB marginal

Individual chronological milestone entry inside <mth-timeline> with marker dot, connector rail, timestamp, and content slots.

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-item> (@methane-ui/ui)
BehaviorSpec validated.Target <mth-timeline-item> rendered inside <mth-timeline>.
Ready · interact with <mth-timeline-item>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/timeline-item"></script>
<mth-timeline-item variant="neutral">Example</mth-timeline-item>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
headingheadingstring""Event title text when heading slot is omitted.
timestamptimestampstring""Timestamp label when timestamp slot is omitted.
variantvariant'neutral' | 'accent' | 'success' | 'warning' | 'danger'"neutral"Semantic accent color for the marker dot (neutral, accent, success, warning, danger).
activeactivebooleanfalseHighlights the timeline entry as current/active.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="host" with host role="listitem".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(active).Conformance suite
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test