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

<mth-scheduler>

@methane-ui/datagrid~10.1 KB brotli shell + lazy engine~3.2 KB shell · lazy engine chunk

Resource timeline scheduler wrapping CalendarCore and @tanstack/virtual-core with RTL-aware keyboard date navigation and virtualized resource rows.

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-scheduler> (@methane-ui/datagrid)
Ready · interact with <mth-scheduler>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/datagrid/scheduler"></script>
<mth-scheduler start-date="2026-01-05" days="7"></mth-scheduler>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
resources—ReadonlyArray<unknown>—Array of resource swimlanes.
events—ReadonlyArray<unknown>—Scheduled events mapped onto resource rows and date columns.
startDatestart-datestring"2026-01-05"ISO start date (YYYY-MM-DD) of the visible timeline window.
daysdaysnumber7Number of timeline day columns.
rowHeightrow-heightnumber48Estimated height of each resource swimlane in pixels.
labellabelstring""Accessible scheduler grid label.

Events

EventDetail TypeDescription
mth-event-select{ event: unknown }Fired when a scheduled event is activated.
mth-date-navigate{ date: string }Fired when keyboard navigation moves the active date.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowDownbothresource row focusedmoves roving focus to next resource
ArrowUpbothresource row focusedmoves roving focus to previous resource
ArrowRightbothtimeline focusedadvances focused date by 1 day (direction-aware)
ArrowLeftbothtimeline focusedmoves focused date back by 1 day (direction-aware)
Enterbothscheduled event focusedemits mth-event-select

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="host".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
keyboardImplements all 5 APG keyboard transitions across LTR/RTL.mth-scheduler.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(empty).Conformance suite
i18nRoutes 4 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test