← All Components
<mth-typing-indicator>
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
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>import '@methane-ui/chat/typing-indicator';
import '@methane-ui/react';
export function Example() {
return <mth-typing-indicator></mth-typing-indicator>;
}<script setup lang="ts">
import '@methane-ui/chat/typing-indicator';
</script>
<template>
<mth-typing-indicator></mth-typing-indicator>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/chat/typing-indicator';
import { MthTypingIndicatorDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthTypingIndicatorDirective],
template: `<mth-typing-indicator></mth-typing-indicator>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/chat/typing-indicator';
import MthTypingIndicator from '@methane-ui/svelte/MthTypingIndicator.svelte';
</script>
<MthTypingIndicator></MthTypingIndicator>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
users | — | ReadonlyArray<string> | — | Array of display names currently typing. |
label | label | string | "" | Optional custom status text overriding generated message. |
locale | locale | string | "" | Optional BCP 47 locale override for Intl.PluralRules formatting. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(active), :state(reduced-motion). | Conformance suite |
| i18n | Routes 5 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |