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

<mth-notification-center>

@methane-ui/ui~9.0 KB brotli (cold + Lit)~2.6 KB marginal

Runtime-scoped notification tray and inbox subscribing to getRuntime().notifications via NotificationStoreController with OverlayController 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-notification-center> (@methane-ui/ui)
Ready · interact with <mth-notification-center>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/notification-center"></script>
<mth-notification-center max-items="20"></mth-notification-center>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
openopenbooleanfalseControls visibility when rendered as an overlay panel.
inlineinlinebooleanfalseRenders the notification list inline rather than as a floating overlay.
headingheadingstring""Optional heading overriding the localized default title.
maxItemsmax-itemsnumber20Maximum number of visible notifications rendered in the list.

Events

EventDetail TypeDescription
mth-openundefinedCancelable event fired before opening.
mth-after-openundefinedFired after opening.
mth-close{ reason: string }Cancelable event fired before closing.
mth-after-closeundefinedFired after closing.
mth-dismiss{ id: string }Fired when a notification entry is dismissed.
mth-clearundefinedFired when all notifications are cleared.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
EscapebothopenCloses the notification center panel.

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
keyboardImplements all 1 APG keyboard transitions across LTR/RTL.mth-notification-center.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(open), :state(empty).Conformance suite
i18nRoutes 6 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test