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

<mth-avatar-group>

@methane-ui/ui~7.9 KB brotli (cold + Lit)~2.0 KB marginal

Overlapping stack of <mth-avatar> items managed via SlotCollectionController with max truncation and localized +N overflow badge.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/avatar-group"></script>
<mth-avatar-group max="0" size="xs">Example</mth-avatar-group>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
maxmaxnumber0Maximum visible avatars before truncating into a +N overflow badge (0 shows all).
sizesize'xs' | 'sm' | 'md' | 'lg' | 'xl'"md"Shared size scale forwarded to slotted avatars (xs | sm | md | lg | xl).
labellabelstring""Accessible group label; defaults to localized "Avatar group".

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(overflowing).Conformance suite
i18nRoutes 3 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test