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

<mth-seat-map>

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

Form-associated 2D ARIA grid seat picker supporting multi-select, seat tiers, and validation.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/maps/seat-map"></script>
<mth-seat-map columns="4" multiple></mth-seat-map>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
namenamestring""Form field name.
valuevaluestring""Comma-separated selected seat identifiers.
defaultValuedefault-valuestring""Default reset seat value.
seats—ReadonlyArray<unknown>—Array of SeatDefinition entries.
columnscolumnsnumber4Number of grid columns used for row layout.
multiplemultiplebooleantrueAllows selecting multiple seats.
requiredrequiredbooleanfalseRequires at least one selected seat.
disableddisabledbooleanfalseDisables interaction and submission.
readOnlyreadonlybooleanfalsePrevents changing seat selection.
labellabelstring""Accessible field label.

Events

EventDetail TypeDescription
inputundefinedNative composed event fired when selection changes.
changeundefinedNative composed event fired when selection commits.
mth-seat-select{ selectedIds: ReadonlyArray<string>; seat: unknown }Fired when an available seat is toggled.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowLeftltrseat gridcell focusedMoves focus left by 1 seat
ArrowRightltrseat gridcell focusedMoves focus right by 1 seat
ArrowUpbothseat gridcell focusedMoves focus up by 1 row
ArrowDownbothseat gridcell focusedMoves focus down by 1 row
Enterbothseat gridcell focusedToggles or selects focused available seat

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-seat-map.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(disabled), :state(readonly), :state(invalid), :state(dirty), :state(touched), :state(multiple).Conformance suite
i18nRoutes 12 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test