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

<mth-column>

@methane-ui/ui~6.8 KB brotli (cold + Lit)~1.4 KB marginal

Declarative column definition element (<mth-column>) consumed by <mth-table> via SlotCollectionController.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/column"></script>
<mth-column filterable width="null">Example</mth-column>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
fieldfieldstring""Property key read from each row record.
headerheaderstring""Visible column header text.
sortablesortablebooleanfalseEnables interactive sorting for this column.
filterablefilterablebooleantrueIncludes this column in global text filtering.
widthwidthnumber | nullnullOptional explicit column width in pixels.
minWidthmin-widthnumber | nullnullOptional minimum column width in pixels.
pinpin'left' | 'right' | nullnullOptional column pinning side (left, right, or null).
alignalign'start' | 'center' | 'end'"start"Logical cell text alignment (start, center, end).

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
statesExposes ElementInternals CustomStateSet flags: :state(sortable), :state(pinned).Conformance suite
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test