← All Components
<mth-activity-feed>
Accessible activity stream (role="feed") supporting slotted items, imperative .items, and async DataSource<T> via DataController and SlotCollectionController.
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-activity-feed>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/activity-feed"></script>
<mth-activity-feed relative-time>Example</mth-activity-feed>import '@methane-ui/ui/activity-feed';
import '@methane-ui/react';
export function Example() {
return <mth-activity-feed relative-time>Example</mth-activity-feed>;
}<script setup lang="ts">
import '@methane-ui/ui/activity-feed';
</script>
<template>
<mth-activity-feed relative-time>Example</mth-activity-feed>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/activity-feed';
import { MthActivityFeedDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthActivityFeedDirective],
template: `<mth-activity-feed relative-time>Example</mth-activity-feed>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/activity-feed';
import MthActivityFeed from '@methane-ui/svelte/MthActivityFeed.svelte';
</script>
<MthActivityFeed relative-time>Example</MthActivityFeed>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
items | — | ReadonlyArray<unknown> | null | null | Imperative activity entries array. |
dataSource | — | unknown | null | null | Async DataSource<ActivityFeedEntry, string> backing the feed. |
filter | filter | string | "" | Filter string passed to DataController queries. |
relativeTime | relative-time | boolean | true | Formats timestamps using FormattingUtils.formatRelativeTime. |
label | label | string | "" | Accessible label for the role="feed" region. |
emptyText | empty-text | string | "" | Custom empty-state message. |
errorText | error-text | string | "" | Custom error-state message. |
loadingText | loading-text | string | "" | Custom loading-state message. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-data-state | { status: unknown; count: number } | Emitted when the underlying DataController transitions status. |
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" with host role="feed". | 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(loading), :state(empty), :state(error). | Conformance suite |
| i18n | Routes 5 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |