← All Components
<mth-status-indicator>
Semantic status dot and optional live label supporting presence (online, offline, busy, away) and system states (error, warning, info, neutral) with reduced-motion pulse.
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-status-indicator>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/status-indicator"></script>
<mth-status-indicator status="online" size="sm">Example</mth-status-indicator>import '@methane-ui/ui/status-indicator';
import '@methane-ui/react';
export function Example() {
return <mth-status-indicator status="online" size="sm">Example</mth-status-indicator>;
}<script setup lang="ts">
import '@methane-ui/ui/status-indicator';
</script>
<template>
<mth-status-indicator status="online" size="sm">Example</mth-status-indicator>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/status-indicator';
import { MthStatusIndicatorDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthStatusIndicatorDirective],
template: `<mth-status-indicator status="online" size="sm">Example</mth-status-indicator>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/status-indicator';
import MthStatusIndicator from '@methane-ui/svelte/MthStatusIndicator.svelte';
</script>
<MthStatusIndicator status="online" size="sm">Example</MthStatusIndicator>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
status | status | 'online' | 'offline' | 'busy' | 'away' | 'error' | 'warning' | 'info' | 'neutral' | "neutral" | Semantic presence or health state. |
pulse | pulse | boolean | false | Enables a subtle ping animation when motion is allowed. |
label | label | string | "" | Optional visible status text. |
size | size | 'sm' | 'md' | 'lg' | "md" | Dot diameter size (sm, md, or lg). |
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(pulse). | Conformance suite |
| i18n | Routes 8 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |