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

<mth-typing-indicator>

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

Accessible live typing indicator using localized pluralized messages and MotionController reduced-motion 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-typing-indicator> (@methane-ui/chat)
Ready · interact with <mth-typing-indicator>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/chat/typing-indicator"></script>
<mth-typing-indicator></mth-typing-indicator>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
users—ReadonlyArray<string>—Array of display names currently typing.
labellabelstring""Optional custom status text overriding generated message.
localelocalestring""Optional BCP 47 locale override for Intl.PluralRules formatting.

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(active), :state(reduced-motion).Conformance suite
i18nRoutes 5 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test