← All Components
<mth-timeline-item>
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
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>import '@methane-ui/ui/timeline-item';
import '@methane-ui/react';
export function Example() {
return <mth-timeline-item variant="neutral">Example</mth-timeline-item>;
}<script setup lang="ts">
import '@methane-ui/ui/timeline-item';
</script>
<template>
<mth-timeline-item variant="neutral">Example</mth-timeline-item>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/timeline-item';
import { MthTimelineItemDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthTimelineItemDirective],
template: `<mth-timeline-item variant="neutral">Example</mth-timeline-item>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/timeline-item';
import MthTimelineItem from '@methane-ui/svelte/MthTimelineItem.svelte';
</script>
<MthTimelineItem variant="neutral">Example</MthTimelineItem>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
heading | heading | string | "" | Event title text when heading slot is omitted. |
timestamp | timestamp | string | "" | Timestamp label when timestamp slot is omitted. |
variant | variant | 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | "neutral" | Semantic accent color for the marker dot (neutral, accent, success, warning, danger). |
active | active | boolean | false | Highlights the timeline entry as current/active. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="host" with host role="listitem". | 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(active). | Conformance suite |
| i18n | Routes 1 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |