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

<mth-kanban>

@methane-ui/admin~10.1 KB brotli (kit + Lit)~3.2 KB marginal

Multi-lane Kanban board (<mth-kanban>) with drag/keyboard card reordering, cross-lane moves, WIP limit badges, and async DataSource card loading.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/admin/kanban"></script>
<mth-kanban>Example</mth-kanban>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
lanes—ReadonlyArray<unknown>—Ordered lane definitions with optional WIP limits.
cards—ReadonlyArray<unknown>—Cards rendered across lanes.
dataSource—unknown | null—Optional async DataSource<KanbanCard, string> adapter.
filterfilterstring""Filter string passed when querying dataSource.

Events

EventDetail TypeDescription
mth-card-move{ cardId: string; fromLaneId: string; toLaneId: string; toIndex: number; cards: ReadonlyArray<unknown> }Emitted when a card moves across lanes or reorders.
mth-card-select{ card: unknown }Emitted when a card is activated.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowRightbotha board card has focusmoves focus to the next card (or previous in RTL)
ArrowLeftbotha board card has focusmoves focus to the previous card (or next in RTL)
Homebotha board card has focusfocuses the first card on the board
Endbotha board card has focusfocuses the last card on the board
Spacebotha board card has focusgrabs/drops the card for keyboard reordering

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusdelegatesFocus: true with zero host internals.role (ADR-014).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-kanban.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(loading), :state(empty), :state(error).Conformance suite
i18nRoutes 8 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test