← All Components
<mth-kanban>
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
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>import '@methane-ui/admin/kanban';
import '@methane-ui/react';
export function Example() {
return <mth-kanban>Example</mth-kanban>;
}<script setup lang="ts">
import '@methane-ui/admin/kanban';
</script>
<template>
<mth-kanban>Example</mth-kanban>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/admin/kanban';
import { MthKanbanDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthKanbanDirective],
template: `<mth-kanban>Example</mth-kanban>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/admin/kanban';
import MthKanban from '@methane-ui/svelte/MthKanban.svelte';
</script>
<MthKanban>Example</MthKanban>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
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. |
filter | filter | string | "" | Filter string passed when querying dataSource. |
Events
| Event | Detail Type | Description |
|---|---|---|
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
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowRight | both | a board card has focus | moves focus to the next card (or previous in RTL) |
| ArrowLeft | both | a board card has focus | moves focus to the previous card (or next in RTL) |
| Home | both | a board card has focus | focuses the first card on the board |
| End | both | a board card has focus | focuses the last card on the board |
| Space | both | a board card has focus | grabs/drops the card for keyboard reordering |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 5 APG keyboard transitions across LTR/RTL. | mth-kanban.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(loading), :state(empty), :state(error). | Conformance suite |
| i18n | Routes 8 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |