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

<mth-list-item>

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

Semantic list row (role="listitem") for <mth-list> with prefix/suffix slots, secondary description, selection state, and safe link support.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/list-item"></script>
<mth-list-item>Example</mth-list-item>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluestring""Unique item value identifier used by parent <mth-list> selection.
descriptiondescriptionstring""Optional secondary text rendered below the primary content.
selectedselectedbooleanfalseMarks the item as selected.
disableddisabledbooleanfalseDisables interaction and excludes item from roving keyboard focus.
interactiveinteractivebooleanfalseEnables pointer hover/focus affordances.
hrefhrefstring""Optional validated destination URL (https:, http:, mailto:, tel:, or relative path).

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="host" with host role="listitem".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(selected), :state(disabled), :state(interactive).Conformance suite
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test