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

<mth-saved-views>

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

Saved table/board view tabs (<mth-saved-views>) with create, duplicate, pin, and delete actions powered by SelectionController and RTL-aware RovingFocusController.

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-saved-views> (@methane-ui/admin)
Ready · interact with <mth-saved-views>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/admin/saved-views"></script>
<mth-saved-views allow-create allow-manage></mth-saved-views>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
views—ReadonlyArray<unknown>—Array of saved view definitions.
activeViewIdactive-view-idstring""Currently selected saved view ID.
allowCreateallow-createbooleantrueShows create view trigger.
allowManageallow-managebooleantrueShows duplicate, pin, and delete controls for the active view.

Events

EventDetail TypeDescription
mth-view-select{ id: string }Emitted when the active saved view changes.
mth-view-create{ view: unknown }Emitted when a new saved view is created.
mth-view-duplicate{ id: string; copy: unknown }Emitted when the active view is duplicated.
mth-view-pin{ id: string; pinned: boolean }Emitted when the active view pin state toggles.
mth-view-delete{ id: string }Emitted when a saved view is deleted.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowRightltrtablist has focusmoves focus to next saved view tab
ArrowLeftrtltablist has focus in RTLmoves focus to next saved view tab
Homebothtablist has focusmoves focus to first saved view tab
Endbothtablist has focusmoves focus to last saved view tab

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusdelegatesFocus: true with zero host internals.role (ADR-014).lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
keyboardImplements all 4 APG keyboard transitions across LTR/RTL.mth-saved-views.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(empty).Conformance suite
i18nRoutes 8 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test